@@ -74,13 +74,13 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
74
74
debian/bin/gencontrol.py
75
75
76
76
# generate linux build file for amd64_none_amd64
77
- # fakeroot make -f debian/rules.gen setup_armhf_none_armmp
78
- # fakeroot make -f debian/rules.gen setup_arm64_none
79
- fakeroot make -f debian/rules.gen setup_amd64_none_amd64
77
+ 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
79
+ fakeroot make -f debian/rules.gen DEB_HOST_ARCH=amd64 setup_amd64_none_amd64
80
80
81
81
# Applying patches and configuration changes
82
- # git add debian/build/build_armhf_none_armmp/.config -f
83
- # git add debian/build/build_arm64_none_arm64/.config -f
82
+ git add debian/build/build_armhf_none_armmp/.config -f
83
+ git add debian/build/build_arm64_none_arm64/.config -f
84
84
git add debian/build/build_amd64_none_amd64/.config -f
85
85
git add debian/config.defines.dump -f
86
86
git add debian/control -f
@@ -93,11 +93,11 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
93
93
stg import -s ../patch/series
94
94
95
95
# Building a custom kernel from Debian kernel source
96
- DO_DOCS=False fakeroot make -f debian/rules -j $(shell nproc) binary-indep
96
+ ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) DO_DOCS=False fakeroot make -f debian/rules -j $(shell nproc) binary-indep
97
97
ifeq ($(CONFIGURED_ARCH ) , armhf)
98
- fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none_armmp
98
+ ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none_armmp
99
99
else
100
- 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
101
101
endif
102
102
popd
103
103
0 commit comments