Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/sun-nontendocm-kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormadmonkey <madfkingmonkey@gmail.com>2017-12-19 00:23:22 +0300
committermadmonkey <madfkingmonkey@gmail.com>2017-12-19 00:23:22 +0300
commit113b9526b01efd295e30c18efc051c10a95679ed (patch)
treecb7e3aacaf399b502a889e6dfb730ffb1befe8f1
parent7e92ea9ba4d4a9d355236b07725c266fb759fcad (diff)
update build script
-rw-r--r--Makefile2
-rwxr-xr-xbuild_all.sh13
-rwxr-xr-xscripts/setlocalversion2
3 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c63e1836..e2938a3d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION = 3
PATCHLEVEL = 4
SUBLEVEL = 112
-EXTRAVERSION =
+EXTRAVERSION = .madmonkey
NAME = Saber-toothed Squirrel
# *DOCUMENTATION*
diff --git a/build_all.sh b/build_all.sh
index b9b9faf8..f451a2d9 100755
--- a/build_all.sh
+++ b/build_all.sh
@@ -6,12 +6,16 @@ MAKE(){
CROSS_COMPILE=arm-linux-gnueabihf-
KDIR="$(pwd)"
-KVERS="3.4.112"
+eval "$(head -n4 "$KDIR/Makefile" | sed 's#\s*=\s*#=#')"
+KVERS="$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
instdir="$KDIR/modules-hmod"
MAKE mrproper
MAKE sun_nontendocm_defconfig
-#make ARCH=arm "CROSS_COMPILE=$CROSS_COMPILE" xconfig
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$(QT_SELECT=4 qmake -query QT_INSTALL_LIBS)/pkgconfig"
+pkg-config --exists QtCore
+make ARCH=arm "CROSS_COMPILE=$CROSS_COMPILE" xconfig || \
+make ARCH=arm "CROSS_COMPILE=$CROSS_COMPILE" menuconfig
MAKE dep
MAKE zImage
MAKE modules
@@ -30,11 +34,12 @@ mkdir "$instdir"
MAKE "INSTALL_MOD_PATH=$instdir" modules_install
find "$instdir" -type l -delete
-mv "$instdir/lib/modules/$KVERS+" "$instdir/lib/modules/$KVERS" || true
mkdir "$instdir/lib/modules/$KVERS/extra"
cp -f "modules/mali/mali.ko" "$instdir/lib/modules/$KVERS/extra/"
cp -f "clovercon/clovercon.ko" "$instdir/lib/modules/$KVERS/extra/"
find "$instdir" -type f -name "*.ko" -print0 | xargs -0 -n1 "${CROSS_COMPILE}strip" --strip-unneeded
makepack "$instdir"
-mv "$instdir.hmod.tgz" "madmonkey-modules-$KVERS.hmod"
+rm -rf "$instdir"
+rm -f "modules-$KVERS.hmod"
+mv "$instdir.hmod.tgz" "modules-$KVERS.hmod"
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index bd6dca8a..383953f2 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -167,7 +167,7 @@ else
# annotated or signed tagged state (as git describe only
# looks at signed or annotated tags - git tag -a/-s) and
# LOCALVERSION= is not specified
- if test "${LOCALVERSION+set}" != "set"; then
+ if false && test "${LOCALVERSION+set}" != "set"; then
scm=$(scm_version --short)
res="$res${scm:++}"
fi