From: Prarit Bhargava prarit@redhat.com
redhat/Makefile.cross: Fix ppc64le cross build targets
I keep forgetting to push this. The cross targets are currently available only for ppc64, not ppc64le.
Fix the ppc64le cross build targets.
Signed-off-by: Prarit Bhargava prarit@redhat.com
diff --git a/redhat/Makefile.cross b/redhat/Makefile.cross index blahblah..blahblah 100644 --- a/redhat/Makefile.cross +++ b/redhat/Makefile.cross @@ -29,10 +29,10 @@ dist-cross-aarch64-rpms: dist-cross-download dist-sources $(CROSS_RPMFLAGS) --target aarch64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE) $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "aarch64"
-dist-cross-ppc64-rpms: dist-cross-download dist-sources +dist-cross-ppc64le-rpms: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh - $(CROSS_RPMFLAGS) --target ppc64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE) - $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "ppc64" + $(CROSS_RPMFLAGS) --target ppc64le --with cross -ba $(RPM)/SOURCES/$(SPECFILE) + $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "ppc64le"
dist-cross-s390x-rpms: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh @@ -42,20 +42,20 @@ dist-cross-s390x-rpms: dist-cross-download dist-sources dist-cross-all-rpms: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh $(CROSS_RPMFLAGS) --target aarch64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE) - $(CROSS_RPMFLAGS) --target ppc64 --with cross -ba $(RPM)/SOURCES/$(SPECFILE) + $(CROSS_RPMFLAGS) --target ppc64le --with cross -ba $(RPM)/SOURCES/$(SPECFILE) $(CROSS_RPMFLAGS) --target s390x --with cross -ba $(RPM)/SOURCES/$(SPECFILE) $(CROSS_RPMFLAGS) -ba $(RPM)/SOURCES/$(SPECFILE) - $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "aarch64 ppc64 s390x x86_64" + $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "aarch64 ppc64le s390x x86_64"
dist-cross-aarch64-build: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh $(CROSS_RPMFLAGS) --target aarch64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "aarch64"
-dist-cross-ppc64-build: dist-cross-download dist-sources +dist-cross-ppc64le-build: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh - $(CROSS_RPMFLAGS) --target ppc64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) - $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "ppc64" + $(CROSS_RPMFLAGS) --target ppc64le --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) + $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "ppc64le"
dist-cross-s390x-build: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh @@ -65,7 +65,7 @@ dist-cross-s390x-build: dist-cross-download dist-sources dist-cross-all-builds: dist-cross-download dist-sources $(REDHAT)/scripts/cross_compile/x86_rngd.sh $(CROSS_RPMFLAGS) --target aarch64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) - $(CROSS_RPMFLAGS) --target ppc64 --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) + $(CROSS_RPMFLAGS) --target ppc64le --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) $(CROSS_RPMFLAGS) --target s390x --with cross --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) $(CROSS_RPMFLAGS) --without debuginfo -bc $(RPM)/SOURCES/$(SPECFILE) - $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "aarch64 ppc64 s390x x86_64" + $(REDHAT)/scripts/cross-compile/generate-cross-report.sh "aarch64 ppc64le s390x x86_64"
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2613
From: Jan Stancek on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2613#note_1496501...
Should we update also this list to download `le` version of binutils and gcc?
From: Daniel Horak on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2613#note_1496615...
The ppc cross-toolchains are bi-arch, so technically the ppc64le variant is not required, the ppc64 one works well (and vice versa).
From: Jan Stancek on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2613#note_1496737...
I meant to change it to `le` version, we won't be building `be` anyway. Changing it here means we don't have to touch also spec.
kernel@lists.fedoraproject.org