Amlogic/Rockchip: fix missing initramfs when compiling linux pkg

This commit is contained in:
adamg 2023-11-04 19:54:13 +00:00
parent 2244aea07e
commit ec9256d930
2 changed files with 10 additions and 0 deletions

View file

@ -114,6 +114,11 @@ makeinstall_host() {
}
pre_make_target() {
( cd ${ROOT}
rm -rf ${BUILD}/initramfs
rm -f ${STAMPS_INSTALL}/initramfs/install_target ${STAMPS_INSTALL}/*/install_init
${SCRIPTS}/install initramfs
)
if [ "${TARGET_ARCH}" = "x86_64" ]; then
# copy some extra firmware to linux tree
mkdir -p ${PKG_BUILD}/external-firmware

View file

@ -132,6 +132,11 @@ makeinstall_host() {
}
pre_make_target() {
( cd ${ROOT}
rm -rf ${BUILD}/initramfs
rm -f ${STAMPS_INSTALL}/initramfs/install_target ${STAMPS_INSTALL}/*/install_init
${SCRIPTS}/install initramfs
)
if [ "${TARGET_ARCH}" = "x86_64" ]; then
# copy some extra firmware to linux tree
mkdir -p ${PKG_BUILD}/external-firmware