mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 19:42:41 +00:00
setup-nv-boot-control_1.0.bb: add script to set OsIndications
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
This commit is contained in:
committed by
Matt Madison
parent
a3f04cc7d6
commit
11e7e78bdf
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
source /usr/bin/uefi_common.func
|
||||
|
||||
rc=0
|
||||
value="\x04\x00\x00\x00\x00\x00\x00\x00"
|
||||
set_efi_var "OsIndications" "8be4df61-93ca-11d2-aa0d-00e098032b8c" "$value" || rc=1
|
||||
exit $rc
|
||||
@@ -9,6 +9,7 @@ SRC_URI = "\
|
||||
file://setup-nv-boot-control.init.in \
|
||||
file://esp.mount.in \
|
||||
file://uefi_common.func.in \
|
||||
file://oe4t-set-uefi-OSIndications \
|
||||
"
|
||||
|
||||
COMPATIBLE_MACHINE = "(tegra)"
|
||||
@@ -54,6 +55,7 @@ do_install() {
|
||||
install -m 0644 ${B}/${ESPMOUNTUNIT} ${D}${systemd_system_unitdir}/
|
||||
install -d ${D}${ESPMOUNT} ${D}${NVIDIA_ESPMOUNT}
|
||||
install -m 0755 ${B}/uefi_common.func ${D}${bindir}/
|
||||
install -m 0755 ${S}/oe4t-set-uefi-OSIndications ${D}${bindir}/
|
||||
}
|
||||
|
||||
pkg_postinst:${PN}() {
|
||||
@@ -76,6 +78,7 @@ FILES:${PN} = "\
|
||||
${bindir}/setup-nv-boot-control \
|
||||
/opt/nvidia ${ESPMOUNT} \
|
||||
${bindir}/uefi_common.func \
|
||||
${bindir}/oe4t-set-uefi-OSIndications \
|
||||
"
|
||||
FILES:${PN}-service = "${sysconfdir} ${systemd_system_unitdir}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user