Verified Commit e3544ac1 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

compile_{fw,fix}: Respect KERNEL options

parent 61b73b3d
#!/bin/bash -xe
make_defconfig() {
make defconfig
egrep '^(#[[:space:]]+)?CONFIG_KERNEL' configs/common configs/$TARGET_BOARD >> ./.config
}
if [ "$1" = turris ] || [ "$1" = omnia ]; then
export TARGET_BOARD="$1"
shift
......@@ -37,7 +42,7 @@ popd
cat configs/common configs/$TARGET_BOARD | sed -e "s|@BOARD@|$TARGET_BOARD|" -e "s|@BRANCH@||" > .config
[ -n "$BUILD_ALL" ] && echo "CONFIG_ALL=y" >> .config && echo "CONFIG_SDK=y" >> .config
[ -n "$USE_CCACHE" ] && echo "CONFIG_CCACHE=y" >> .config
make defconfig
make_defconfig
git log -n1 --format='%H' >files/etc/git-version
git clone git@git.nic.cz:turris/misc-internal
# If the revision is marked, it is propagation of deploy into current stable. In that case, we clean up. Otherwise, just try to recompile it as fast as possible, as it is just some small fix.
......
......@@ -9,6 +9,11 @@
[ -d ./logs-nor ] && rm -rf ./logs-nor
[ -d ./logs-initram ] && rm -rf ./logs-initram
make_defconfig() {
make defconfig
egrep '^(#[[:space:]]+)?CONFIG_KERNEL' configs/common configs/$TARGET_BOARD >> ./.config
}
if [ "$1" = turris ] || [ "$1" = omnia ]; then
export TARGET_BOARD="$1"
shift
......@@ -52,7 +57,7 @@ if [ -f "$HOME"/mime.key ]; then
cp "$HOME/mime.key" key-build
cp "$HOME/mime.pub" key-build.pub
fi
make defconfig
make_defconfig
if [ -d .git ] ; then
git log -n1 --format='%H' >files/etc/git-version
fi
......@@ -92,7 +97,7 @@ EOF
if [ "$TARGET_BOARD" = turris ]; then
#Build initramfs
echo -e "CONFIG_TARGET_ROOTFS_INITRAMFS=y\nCONFIG_TARGET_INITRAMFS_COMPRESSION_XZ=y" >> .config
make defconfig
make_defconfig
make target/linux/compile "$@"
[ \! -d ./logs ] || mv ./logs ./logs-initram
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment