Skip to content

Commit

Permalink
fixup SolidHal#249, locate kernel config for "make kernel_config" pro…
Browse files Browse the repository at this point in the history
…perly
  • Loading branch information
SolidHal committed Dec 23, 2020
1 parent 1bf930b commit c905b01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ kernel_image_package_install: kernel_image_package

.PHONY: kernel_config
kernel_config: $(KERNEL_PATCHED)
$(PRAWNOS_KERNEL_SCRIPTS_MENUCONFIG) $(KERNEL_RESOURCES) $(PRAWNOS_KERNEL_BUILD) $(TARGET)
$(PRAWNOS_KERNEL_SCRIPTS_MENUCONFIG) $(KERNEL_RESOURCES) $(PRAWNOS_KERNEL_BUILD) $(TARGET) $(KERNEL_CONFIG)

### CLEAN RULES

Expand Down
10 changes: 8 additions & 2 deletions scripts/BuildScripts/KernelScripts/crossMenuConfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ then
echo "No TARGET supplied"
exit 1
fi
if [ -z "$4" ]
then
echo "No kernel config supplied"
exit 1
fi

RESOURCES=$1
BUILD_DIR=$2
TARGET=$3
CONFIG=$4

ARCH_ARMHF=armhf
ARCH_ARM64=arm64
Expand All @@ -58,6 +64,6 @@ else
echo "no valid target arch specified"
fi

cp $RESOURCES/config .config
cp $CONFIG .config
make menuconfig ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILER .config
cp .config $RESOURCES/config
cp .config $CONFIG

0 comments on commit c905b01

Please sign in to comment.