-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new-kernel:fix cross build #3132
Conversation
1195c65
to
45eaf91
Compare
fea1f7e
to
a937237
Compare
pkg/new-kernel/Dockerfile
Outdated
@@ -176,7 +180,7 @@ RUN ./autogen.sh && \ | |||
--with-linux-obj=/linux \ | |||
--with-config=kernel \ | |||
--enable-linux-builtin \ | |||
--host="${EVE_TARGET_ARCH}"-linux-musl --build="${EVE_BUILD_ARCH}"-linux-musl && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@famleebob , did you figure out why EVE_BUILD_ARCH is not reflecting the right architecture here? In theory you shouldn't need to change this variable....
@famleebob , I will test on my x86 host and post results here... |
I've performed the following builds (all successfully):
@famleebob , note, however, that you will need to rebase your PR.... |
7db2f6d
to
af8abb8
Compare
I also built all three architectures on a Mac M1 (aarch64). that is |
af8abb8
to
1ffcbc4
Compare
repeated the three builds on my Mac M1, after the last rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGT Rene
@famleebob you need a DCO signature on each commit. See instructions. |
1ffcbc4
to
625d4e1
Compare
The problem with the DCO check was the email address I used. Corrected that with a commit. Looks like all is ready to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run eden again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
pkg/new-kernel/Dockerfile
Outdated
@@ -93,6 +96,7 @@ ENV KERNEL_DEFCONFIG=defconfig | |||
# build for all arches | |||
# hadolint ignore=DL3006 | |||
FROM kernel-target-${TARGETARCH} AS kernel-build | |||
ARG BUILDARCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@famleebob, you forgot this ARG from the first version of the PR, we don't need it anymore (correctly pointed out by @christoph-zededa)
625d4e1
to
43d257e
Compare
Updated per comments (thanks Christoph). |
Re-ran builds on all three architectures ( |
@famleebob , just a final touch, since you already ran the tests, you can remove the following excerpt from your commit message:
maybe just let a sample phrase telling the changes were validated for all (arm64, amd64 and riscv64)... |
Tested build on x86_64 machine for (amd64, arm64, and riscv64) native/cross builds. Also cleaned up commit comment as suggested. |
@famleebob seems like you have 29 more commits than you should in this PR. Please rebase on master and then make sure you have a single commit for your changes (and no merge commits). |
`EVE_TARGET_ARCH` must be correctly and consistenly set to correclty build expected targets. Further, `EVE_BUILD_ARCH` must be set to reflect the curren build host architecture. The correct value for this is provided by `buildkit` as `BUILDARCH`, only used in one place. Validated cross build of `arm64`, `amd64`,and `arm64`. Signed-off-by: Gerald (Bob) Lee <bob@famleehouse.net>
b576273
to
78ec1a1
Compare
EVE_TARGET_ARCH
must be correctly and consistenly set to correclty build expected targets. Further,EVE_BUILD_ARCH
must be set to reflect the curren build host architecture. The correct value for this is provided bybuildkit
asBUILDARCH
, only used in one place.Validated by building
arm64
onarm64
,amd64
onarm64
, andriscv64
onarm64
.Need to have this change validated with
arm64
onamd64
, andamd64
onamd64
, andriscv64
onamd64
.