fix kernel compile problem for arm64#137
fix kernel compile problem for arm64#137lguohan merged 2 commits intosonic-net:masterfrom taocy001:arm64_buster_build
Conversation
|
can you check the build failure? |
These changes rely on updates to the sonic-slave-buster. |
|
retest this please |
|
the build image pr has been merged. can you check the build failure? |
|
@antony-rheneus, can you take a look at this pr? |
Makefile
Outdated
| ORIG_FILE_URL = "http://security.debian.org/debian-security/pool/updates/main/l/linux/linux_4.19.67.orig.tar.xz" | ||
|
|
||
| define dpkg-architecture-armhf | ||
| $(shell dpkg-architecture -aarmhf) CROSS_COMPILE=arm-linux-gnueabihf- |
There was a problem hiding this comment.
No need of cross compilation, as multi arch is enabled
Makefile
Outdated
| # fakeroot make -f debian/rules.gen setup_armhf_none_armmp | ||
| # fakeroot make -f debian/rules.gen setup_arm64_none | ||
| fakeroot make -f debian/rules.gen setup_amd64_none_amd64 | ||
| $(call dpkg-architecture-armhf) fakeroot make -f debian/rules.gen setup_armhf_none_armmp |
There was a problem hiding this comment.
The one mentioned in this comment also does the job
#121 (comment)
Makefile
Outdated
| DO_DOCS=False fakeroot make -f debian/rules -j $(shell nproc) binary-indep | ||
| ifeq ($(CONFIGURED_ARCH), armhf) | ||
| fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none_armmp | ||
| $(call dpkg-architecture-armhf) DO_DOCS=False fakeroot make -f debian/rules -j $(shell nproc) binary-indep |
There was a problem hiding this comment.
Can reduce multiple/else by.
-
DO_DOCS=False ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) fakeroot make -f debian/rules -j $(shell nproc) binary-indep
Makefile
Outdated
| else | ||
| ifeq ($(CONFIGURED_ARCH), arm64) | ||
| $(call dpkg-architecture-arm64) DO_DOCS=False fakeroot make -f debian/rules -j $(shell nproc) binary-indep | ||
| $(call dpkg-architecture-arm64) fakeroot make -f debian/rules.gen -j $(shell nproc) binary-arch_$(CONFIGURED_ARCH)_none |
There was a problem hiding this comment.
Can reduce arch check if else by,
ARCH=$(CONFIGURED_ARCH) DEB_HOST_ARCH=$(CONFIGURED_ARCH) fakeroot make -f debian/rules.gen -j
multi-arch docker usage is to get rid of cross compilation. without cross building multi-arch uses native(ARM) (not the host) gcc tools |
|
I would rather propose below change. |
|
@taocy001 , can you look at the suggestion from @antony-rheneus |
This should be a better way to modify it. |
|
thanks, can you update the pr then? |
Ok, I'll update the PR after reworking and testing. |
|
@lguohan @antony-rheneus |
Uh oh!
There was an error while loading. Please reload this page.