OSDN Git Service

add buildspec.mk for user build
authorStefan Seidel <android@stefanseidel.info>
Thu, 16 Feb 2012 20:02:37 +0000 (21:02 +0100)
committerStefan Seidel <android@stefanseidel.info>
Thu, 16 Feb 2012 20:02:37 +0000 (21:02 +0100)
patches/apply.sh
patches/buildspec.mk [new file with mode: 0644]

index 5ff71d8..c240021 100755 (executable)
@@ -12,10 +12,14 @@ MYDIR="$(readlink -f $(dirname $0))"
     cd ../ndk
     git apply "$MYDIR/ndk.patch"
     cd ..
-    prebuilt/linux-x86/toolchain/i686-android-linux-4.4.3/build-toolchain.sh
+    prebuilt/linux-x86/toolchain/i686-android-linux-4.4.3/build-toolchain.sh &
 }
 
 # apply kernel patches
 cd kernel
 git status kernel/power/suspend.c | tail -1 | grep -q 'nothing to commit' && git apply "$MYDIR/kernel-suspend.patch"
 cd ..
+
+[ -e buildspec.mk ] || cp "$MYDIR/buildspec.mk" buildspec.mk
+
+wait
diff --git a/patches/buildspec.mk b/patches/buildspec.mk
new file mode 100644 (file)
index 0000000..c5d46ac
--- /dev/null
@@ -0,0 +1,5 @@
+TARGET_PRODUCT:=thinkpad_x41t
+#TARGET_BUILD_VARIANT:=eng
+TARGET_BUILD_VARIANT:=user
+TARGET_BUILD_TYPE:=release
+USE_CCACHE:=1