Skip to content

Commit 06f7975

Browse files
committed
changed the build function to not use debuild
1 parent 052cff8 commit 06f7975

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

functions

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,16 @@ kernel_build ()
158158
do_mount;
159159
cd $BASE_DIR/$ROOT_TARGET/$KERNEL_DIR;
160160
git clean -xdf;
161-
sed -i '/do_tools/ s/true/false/' debian.nexus7/rules.d/armhf.mk;
162-
chroot $BASE_DIR/$ROOT_TARGET su - -c "cd /"$KERNEL_DIR"; fakeroot debian/rules clean";
163-
chroot $BASE_DIR/$ROOT_TARGET su - -c 'cd /'$KERNEL_DIR'; debuild -eDEB_BUILD_OPTIONS="parallel='$BUILD_PROCESSES'" -eCROSS_COMPILE="ccache arm-linux-gnueabihf-" -b -aarmhf -us -uc -nc';
161+
export ARCH=arm;
162+
export SUBARCH=arm;
163+
export CROSS_COMPILE="ccache arm-linux-gnueabihf-"
164+
chroot $BASE_DIR/$ROOT_TARGET su - -c "cd /"$KERNEL_DIR"; make mrproper";
165+
chroot $BASE_DIR/$ROOT_TARGET su - -c "cd /"$KERNEL_DIR"; make grouper_ubuntu_defconfig";
166+
chroot $BASE_DIR/$ROOT_TARGET su - -c "cd /"$KERNEL_DIR"; make";
167+
168+
# sed -i '/do_tools/ s/true/false/' debian.nexus7/rules.d/armhf.mk;
169+
# chroot $BASE_DIR/$ROOT_TARGET su - -c "cd /"$KERNEL_DIR"; fakeroot debian/rules clean";
170+
# chroot $BASE_DIR/$ROOT_TARGET su - -c 'cd /'$KERNEL_DIR'; debuild -eDEB_BUILD_OPTIONS="parallel='$BUILD_PROCESSES'" -eCROSS_COMPILE="ccache arm-linux-gnueabihf-" -b -aarmhf -us -uc -nc';
164171
cd $BASE_DIR;
165172
do_unmount;
166173
reset_path;

0 commit comments

Comments
 (0)