genimage: leaves tmp in a bad state for rebuilds

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
default-cape-symlinks
Robert Nelson 1 year ago
parent 5cfd6150e5
commit de8f67cc0a

@ -31,6 +31,11 @@ make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs
KERNEL_UTS=$(cat "${wdir}/linux/include/generated/utsrelease.h" | awk '{print $3}' | sed 's/\"//g' )
if [ -d "${wdir}/deploy/tmp/" ] ; then
rm -rf "${wdir}/deploy/tmp/"
fi
mkdir -p "${wdir}/deploy/tmp/"
make -s ARCH=riscv CROSS_COMPILE=${CC} modules_install INSTALL_MOD_PATH="${wdir}/deploy/tmp"
if [ -f "${wdir}/deploy/${KERNEL_UTS}-modules.tar.gz" ] ; then

@ -3,7 +3,10 @@
cd ./deploy/
if [ -f ./src.bin ] ; then
mkdir ./input/
if [ ! -d ./input/ ] ; then
mkdir ./input/
fi
if [ -f ./input/payload.bin ] ; then
rm -rf ./input/payload.bin || true
fi

@ -17,4 +17,8 @@ fi
genimage --config genimage.cfg
if [ -d ./tmp ] ; then
rm -rf ./tmp || true
fi
#

Loading…
Cancel
Save