Files
Yi Zhao 2bd48852e2 meta-secure-core: fix wrong operator combination
Operations like XXX:append += "YYY" are almost always wrong and this
is a common mistake made in the metadata. Improve them to use the
standard format.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2021-11-18 13:58:20 +08:00

20 lines
513 B
PHP

CFLAGS:remove = "-pie -fpie"
# We need -no-pie in case the default is to generate pie code.
#
do_compile:append:class-target() {
${CC} ${CFLAGS} ${LDFLAGS} -no-pie -static \
sys-utils/switch_root.o \
-o switch_root.static
}
do_install:append:class-target() {
install -d "${D}${sbindir}"
install -m 0700 "${B}/switch_root.static" \
"${D}${sbindir}/switch_root.static"
}
PACKAGES =+ "${PN}-switch-root.static"
FILES:${PN}-switch-root.static = "${sbindir}/switch_root.static"