Skip to content

Commit 17a1eb6

Browse files
taocy001taocy
andauthored
do not build DOCS and cloud-amd64 (#140)
speed up kernel compile. - DO_DOCS=False do not skip generate document package on 4.19, use DEB_BUILD_PROFILES=nodoc instead. - use arch_amd64_none_amd64 to build the amd64 kernel package, avoid generating cloud-amd64 package. As a result, jenkins pipeline linux-kernel-buster-build-pr job #31 takes 1h 6min, compare to #30 takes 1h 24min. Co-authored-by: taocy <[email protected]>
1 parent f07f74f commit 17a1eb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
7575

7676
# generate linux build file for amd64_none_amd64
7777
fakeroot make -f debian/rules.gen DEB_HOST_ARCH=armhf setup_armhf_none_armmp
78-
fakeroot make -f debian/rules.gen DEB_HOST_ARCH=arm64 setup_arm64_none
78+
fakeroot make -f debian/rules.gen DEB_HOST_ARCH=arm64 setup_arm64_none_arm64
7979
fakeroot make -f debian/rules.gen DEB_HOST_ARCH=amd64 setup_amd64_none_amd64
8080

8181
# Applying patches and configuration changes
@@ -93,11 +93,11 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
9393
stg import -s ../patch/series
9494

9595
# Building a custom kernel from Debian kernel source
96-
ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) DO_DOCS=False fakeroot make -f debian/rules -j $(shell nproc) binary-indep
96+
ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) DEB_BUILD_PROFILES=nodoc fakeroot make -f debian/rules -j $(shell nproc) binary-indep
9797
ifeq ($(CONFIGURED_ARCH), armhf)
9898
ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none_armmp
9999
else
100-
ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none
100+
ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none_$(CONFIGURED_ARCH)
101101
endif
102102
popd
103103

0 commit comments

Comments
 (0)