aboutsummaryrefslogtreecommitdiff
path: root/build-scripts
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2013-04-12 10:22:20 +0530
committerAmit Pundir <amit.pundir@linaro.org>2013-04-12 10:22:20 +0530
commit21cd1a61f795df40a5cbf51fa1bb31a3d2ac0a6e (patch)
tree3517ef50178b353a47fc31f2b77b9df321ee59bc /build-scripts
parenta2c153d5da7aa61f3d7f51a2ec76c0bcbe28353e (diff)
create kernel build script: build zImage for ARCH_MULTIPLATFORM kernels
Diffstat (limited to 'build-scripts')
-rwxr-xr-xbuild-scripts/create-user-kernel-script8
1 files changed, 3 insertions, 5 deletions
diff --git a/build-scripts/create-user-kernel-script b/build-scripts/create-user-kernel-script
index 7750b50..34b0d4f 100755
--- a/build-scripts/create-user-kernel-script
+++ b/build-scripts/create-user-kernel-script
@@ -99,14 +99,12 @@ else
fi
cat <<EOF
# build the code
-KERNEL_VERSION=\`cat Makefile | grep "^VERSION =" | cut -d' ' -f3-\`
-KERNEL_PATCHLEVEL=\`cat Makefile | grep "^PATCHLEVEL =" | cut -d' ' -f3-\`
-if [[ \${KERNEL_VERSION}.\${KERNEL_PATCHLEVEL} =~ "3.9" ]]; then
- MAKE_ZIMAGE=1
-fi
CROSS_COMPILE=\`which arm-linux-gnueabi-gcc |sed -e 's,gcc,,'\`
[ -d out ] || mkdir out
[ -f out/.config ] || $CP_CMD
+if [[ \`grep -Fxq 'CONFIG_ARCH_MULTIPLATFORM=y' out/.config\` ]]; then
+ MAKE_ZIMAGE=1
+fi
if [ \${MAKE_ZIMAGE} == 1 ] ; then
make -j\${CPUS} O=out ARCH=arm CROSS_COMPILE=\$CROSS_COMPILE zImage modules
else