mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-17 05:06:59 +00:00
2bd48852e2
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>
20 lines
513 B
PHP
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"
|