build_kernel_deb.sh: update the ec-som build to the 4.18 kernel

If the kernel config exsists in the kernel tree it will be copied
into .config .
parent 2a283612
......@@ -63,10 +63,10 @@ case ${pureos_board} in
DTS_FILE=""
;;
ec-som)
KERNEL_BRANCH=pureos-patches
KERNEL_BRANCH=imx8-4.18
KERNEL_REPO=https://source.puri.sm/Librem5/linux-emcraft.git
CROSS_COMPILER=aarch64-linux-gnu-
DOT_CONFIG=emcraft-imx8-som_dot_config
DOT_CONFIG=librem5-evk_defconfig
ARCH=arm64
COMPILER_ARCH=arm64
GIT_OPTS="--depth 1"
......@@ -91,7 +91,11 @@ fi
if [ ! -e .config ]; then
echo "Configuring kernel"
cp ../${DOT_CONFIG} .config
if [ -e arch/${ARCH}/configs/${DOT_CONFIG} ]; then
cp arch/${ARCH}/configs/${DOT_CONFIG} .config
else
cp ../${DOT_CONFIG} .config
fi
fi
if [ -n "${DTS_FILE}" ]; then
......
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