arm/hafnium: upgrade to 2.6
PATCH 1/3 arm/hafnium: upgrade to 2.6
hashbang.patch isn't needed anymore, and rebase the other patches.
Signed-off-by Ross Burton <[email protected]>
---
.../hafnium/hafnium/hashbang.patch | 34 ------------------
.../recipes-bsp/hafnium/hafnium/host-ld.patch | 8 ++---
.../hafnium/hafnium/pkg-config-native.patch | 35 +++++++------------
.../{hafnium_2.5.bb => hafnium_2.6.bb} | 3 +-
4 files changed, 18 insertions(+), 62 deletions(-)
delete mode 100644 meta-arm/recipes-bsp/hafnium/hafnium/hashbang.patch
rename meta-arm/recipes-bsp/hafnium/{hafnium_2.5.bb => hafnium_2.6.bb} (95%)meta-arm/recipes-bsp/hafnium/hafnium/hashbang.patch deleted +0 -34
@@ -1,34 +0,0 @@ -Update Clang hashbangs to call python3 instead of python, as that doesn't exist -in our hosttools. - -Upstream-Status: Backport [partial, fixed upstream] -Signed-off-by: Ross Burton <[email protected]> - -diff --git a/linux-x64/clang/bin/clang b/prebuilts/linux-x64/clang/bin/clang -index 081cb20a..ce9cc267 100755 ---- a/prebuilts/linux-x64/clang/bin/clang -+++ b/prebuilts/linux-x64/clang/bin/clang -@@ -1 +1 @@ --#!/usr/bin/env python -+#!/usr/bin/env python3 -diff --git a/prebuilts/linux-x64/clang/bin/clang++ b/prebuilts/linux-x64/clang/bin/clang++ -index 081cb20a..ce9cc267 100755 ---- a/prebuilts/linux-x64/clang/bin/clang++ -+++ b/prebuilts/linux-x64/clang/bin/clang++ -@@ -1 +1 @@ --#!/usr/bin/env python -+#!/usr/bin/env python3 -diff --git a/prebuilts/linux-x64/clang/bin/clang-tidy b/prebuilts/linux-x64/clang/bin/clang-tidy -index 081cb20a..ce9cc267 100755 ---- a/prebuilts/linux-x64/clang/bin/clang-tidy -+++ b/prebuilts/linux-x64/clang/bin/clang-tidy -@@ -1 +1 @@ --#!/usr/bin/env python -+#!/usr/bin/env python3 -diff --git a/prebuilts/linux-x64/clang/bin/scan-view b/prebuilts/linux-x64/clang/bin/scan-view -index 6165432e..07effbca 100755 ---- a/prebuilts/linux-x64/clang/bin/scan-view -+++ b/prebuilts/linux-x64/clang/bin/scan-view -@@ -1 +1 @@ --#!/usr/bin/env python -+#!/usr/bin/env python3
meta-arm/recipes-bsp/hafnium/hafnium/host-ld.patch +4 -4
@@ -11,11 +11,11 @@ diff --git a/build/linux/linux.gni b/build/linux/linux.gni index 65cc9df..19adbfb 100644 --- a/build/linux/linux.gni +++ b/build/linux/linux.gni -@@ -69,6 +70,7 @@ template("linux_kernel") { - "GCC_TOOLCHAIN_DIR=" + rebase_path("//prebuilts/linux-x64/gcc/bin"), - "ARCH=arm64", +@@ -60,6 +60,7 @@ template("linux_kernel") { + "LLVM=1", + "LLVM_IAS=1", "CROSS_COMPILE=aarch64-linux-gnu-", + "HOSTLDFLAGS=" + getenv("BUILD_LDFLAGS"), - + # Build out-of-tree in `target_out_dir`. "O=" + rebase_path(target_out_dir),
meta-arm/recipes-bsp/hafnium/hafnium/pkg-config-native.patch +13 -22
@@ -1,29 +1,20 @@ -Use pkg-config-native to find the libssl headers. The bulk of this patch is -actually a backport from mainline Linux, but pkg-config changed to -pkg-config-native. +Use pkg-config-native to find the libssl headers. Upstream-Status: Inappropriate Signed-off-by: Ross Burton <[email protected]> diff --git a/scripts/Makefile b/scripts/Makefile -index 9adb6d247818..5fe371c7d7f5 100644 +index b4b7d8b58..26a5160ee 100644 --- a/third_party/linux/scripts/Makefile +++ b/third_party/linux/scripts/Makefile -@@ -21,10 +21,15 @@ hostprogs-$(CONFIG_MODULE_SIG_FORMAT) += sign-file - hostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert - hostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert - -+CRYPTO_CFLAGS = $(shell pkg-config-native --cflags libcrypto) -+CRYPTO_LIBS = $(shell pkg-config-native --libs libcrypto) -+ - HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include - HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include --HOSTLDLIBS_sign-file = -lcrypto --HOSTLDLIBS_extract-cert = -lcrypto -+HOSTCFLAGS_sign-file.o = $(CRYPTO_CFLAGS) -+HOSTLDLIBS_sign-file = $(CRYPTO_LIBS) -+HOSTCFLAGS_extract-cert.o = $(CRYPTO_CFLAGS) -+HOSTLDLIBS_extract-cert = $(CRYPTO_LIBS) - - always := $(hostprogs-y) $(hostprogs-m) - +@@ -10,8 +10,8 @@ + + HOST_EXTRACFLAGS += -I$(srctree)/tools/include + +-CRYPTO_LIBS = $(shell pkg-config --libs libcrypto 2> /dev/null || echo -lcrypto) +-CRYPTO_CFLAGS = $(shell pkg-config --cflags libcrypto 2> /dev/null) ++CRYPTO_LIBS = $(shell pkg-config-native --libs libcrypto 2> /dev/null || echo -lcrypto) ++CRYPTO_CFLAGS = $(shell pkg-config-native --cflags libcrypto 2> /dev/null) + + hostprogs-$(CONFIG_BUILD_BIN2C) += bin2c + hostprogs-$(CONFIG_KALLSYMS) += kallsyms
meta-arm/recipes-bsp/hafnium/hafnium_2.6.bb renamed from meta-arm/recipes-bsp/hafnium/hafnium_2.5.bb +1 -2
@@ -10,11 +10,10 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit deploy python3native pkgconfig SRC_URI = "gitsm://git.trustedfirmware.org/hafnium/hafnium.git;protocol=https;branch=master \ - file://hashbang.patch \ file://host-ld.patch \ file://pkg-config-native.patch \ file://native-dtc.patch" -SRCREV = "3a149eb219467c0d9336467ea1fb9d3fb65da94b" +SRCREV = "55b74f893948dd08d2782dd8fa9e903c143a6704" S = "${WORKDIR}/git" B = "${WORKDIR}/build"
Signature · 1 line
2.25.1
PATCH 2/3 arm/hafnium: enable qemuarm64
Hafnium can do a qemu/aarch64 build, so enable that for future testing purposes.
Signed-off-by Ross Burton <[email protected]>
--- meta-arm/recipes-bsp/hafnium/hafnium_2.6.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-arm/recipes-bsp/hafnium/hafnium_2.6.bb +2 -0
@@ -18,12 +18,14 @@ S = "${WORKDIR}/git" B = "${WORKDIR}/build" COMPATIBLE_MACHINE ?= "invalid" +COMPATIBLE_MACHINE:qemuarm64 = "qemuarm64" # Default build 'reference' HAFNIUM_PROJECT ?= "reference" # Platform must be set for each machine HAFNIUM_PLATFORM ?= "invalid" +HAFNIUM_PLATFORM:qemuarm64 = "qemu_aarch64" # do_deploy will install everything listed in this variable. It is set by # default to hafnium
Signature · 1 line
2.25.1
PATCH 3/3 arm-bsp/hafnium: update bbappend for 2.6
In reply to Ross BurtonNo need for this to be versioned as it complicates upgrades.
Remove the explicit post-2.5 SRCREV now that the recipe has upgraded to 2.6, and remove assignments which are already the default for conciseness.
Signed-off-by Ross Burton <[email protected]>
---
meta-arm-bsp/recipes-bsp/hafnium/hafnium-tc.inc | 4 ----
.../hafnium/{hafnium_2.5.bbappend => hafnium_%.bbappend} | 0
2 files changed, 4 deletions(-)
rename meta-arm-bsp/recipes-bsp/hafnium/{hafnium_2.5.bbappend => hafnium_%.bbappend} (100%)meta-arm-bsp/recipes-bsp/hafnium/hafnium-tc.inc +0 -4
@@ -1,8 +1,4 @@ # TC0 specific configuration COMPATIBLE_MACHINE = "(tc?)" -HAFNIUM_PROJECT = "reference" -HAFNIUM_INSTALL_TARGET = "hafnium" HAFNIUM_PLATFORM = "secure_tc" - -SRCREV = "464fa5a287791e7d128e37721a7d1da257144e12"
meta-arm-bsp/recipes-bsp/hafnium/hafnium_%.bbappend renamed from meta-arm-bsp/recipes-bsp/hafnium/hafnium_2.5.bbappend +0 -0
Signature · 1 line
2.25.1