diff --git a/lib/common.sh b/lib/common.sh index cc626cc8c..98e825903 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -235,11 +235,11 @@ compile_kernel() make $CTHREADS ARCH=$ARCHITECTURE CROSS_COMPILE="$CCACHE $KERNEL_COMPILER" menuconfig # store kernel config in easily reachable place display_alert "Exporting new kernel config" "$DEST/$LINUXCONFIG.config" "info" - cp .config $DEST/$LINUXCONFIG.config + cp .config $DEST/config/$LINUXCONFIG.config # export defconfig too if requested if [[ $KERNEL_EXPORT_DEFCONFIG == yes ]]; then make ARCH=$ARCHITECTURE CROSS_COMPILE="$CCACHE $KERNEL_COMPILER" savedefconfig > /dev/null 2>&1 - [[ -f defconfig ]] && cp defconfig $DEST/$LINUXCONFIG.defconfig + [[ -f defconfig ]] && cp defconfig $DEST/config/$LINUXCONFIG.defconfig fi fi @@ -460,7 +460,7 @@ userpatch_create() git add . git -c user.name='Armbian User' -c user.email='user@example.org' commit -q -m "Cleaning working copy" - local patch="$SRC/userpatches/CREATE_PATCHES/$1-$LINUXFAMILY-$BRANCH.patch" + local patch="$DEST/patch/$1-$LINUXFAMILY-$BRANCH.patch" # apply previous user debug mode created patches [[ -f $patch ]] && display_alert "Applying existing $1 patch" "$patch" "wrn" && patch --batch --silent -p1 -N < $patch diff --git a/lib/general.sh b/lib/general.sh index e2af42153..8b0c8c6d4 100644 --- a/lib/general.sh +++ b/lib/general.sh @@ -539,7 +539,7 @@ prepare_host() fi # create directory structure - mkdir -p $DEST/debs/extra $DEST/debug $SRC/userpatches/{overlay,CREATE_PATCHES} $SRC/cache/{sources,toolchains,rootfs} $SRC/.tmp + mkdir -p $DEST/debs/extra $DEST/{config,debug,patch} $SRC/userpatches/overlay $SRC/cache/{sources,toolchains,rootfs} $SRC/.tmp find $SRC/patch -type d ! -name . | sed "s%/patch%/userpatches%" | xargs mkdir -p # download external Linaro compiler and missing special dependencies since they are needed for certain sources