Re: [ptxdist] [PATCH v2 0/4] ptxd_make_world_inject: Spring cleanup and optional dest dir

2024-05-06 Thread Michael Riesch
Hello Alexander, On 5/6/24 12:50, Alexander Dahl wrote: > Hello, > > some spring cleaning and a new feature for the firmware inject > mechanism. > > When trying to re-build U-Boot as an oot build for the Karo QSBASE93 > Evalkit (for QS93 Solder-Down System-on-Module) it became apparent > U-Boot

[ptxdist] [PATCH 2/3] u-boot: Allow other packages to inject dependencies

2024-05-06 Thread Alexander Dahl
Same approach as in barebox packages. Signed-off-by: Alexander Dahl --- platforms/u-boot.in | 5 + 1 file changed, 5 insertions(+) diff --git a/platforms/u-boot.in b/platforms/u-boot.in index 53db146e1..9163a8378 100644 --- a/platforms/u-boot.in +++ b/platforms/u-boot.in @@ -1,6 +1,11 @@

[ptxdist] [PATCH 3/3] u-boot: Add integration of firmware blobs

2024-05-06 Thread Alexander Dahl
Almost same approach as done for barebox with commit 6684c552fbd7 ("barebox: add integration of firmware blobs") already. For some boards it is required to inject files to build dir. This is cleaner and not cluttering your source dir. In U-Boot it seems to work in both ways, injecting to source

[ptxdist] [PATCH 0/3] u-boot: Extend for using external firmware

2024-05-06 Thread Alexander Dahl
Hello everyone, for quite some new boards external firmware blobs are required to build a working bootloader image. This series is the follow-up to the reworked ptxdist inject mechanism and allows to build U-Boot for modern boards with i.MX8 or i.MX9 SoCs (and probably more). Greets Alex

[ptxdist] [PATCH 1/3] u-boot: Add option to pass additional make env

2024-05-06 Thread Alexander Dahl
Some things need to be set in environment instead of passing them as additional make opts. Signed-off-by: Alexander Dahl --- platforms/u-boot.in | 9 + rules/u-boot.make | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/platforms/u-boot.in b/platforms/u-boot.in

[ptxdist] [PATCH v2 2/4] ptxd_make_world_inject: Use _DIR directly

2024-05-06 Thread Alexander Dahl
pkg_source was defined as "$($(1)_DIR)" which is the same as pkg_dir in ptxd_make_world_common. We can use pkg_dir directly. Add a safe-guard to bail out early if that var is empty. Signed-off-by: Alexander Dahl --- Notes: v2: - no change v1: - implicit

[ptxdist] [PATCH v2 1/4] ptxd_make_world_inject: Remove useless test

2024-05-06 Thread Alexander Dahl
One line above $target is set to "${var}/$(subshell)" and even if $var _and_ the result of the subshell call is empty, there's still the slash. Thus target is never empty. Signed-off-by: Alexander Dahl --- Notes: v2: - no change v1: - implicit

[ptxdist] [PATCH v2 4/4] ptxd_make_world_inject: Introduce new variable _INJECT_OOT

2024-05-06 Thread Alexander Dahl
Setting the new variable to 'YES' allows to inject into _BUILD_DIR instead of _DIR as before. When building out-of-tree some bootloaders like U-Boot expect injected files in the build dir, not in the source dir. Backwards compatibility is ensured, the source dir is still the default, the new

[ptxdist] [PATCH v2 0/4] ptxd_make_world_inject: Spring cleanup and optional dest dir

2024-05-06 Thread Alexander Dahl
Hello, some spring cleaning and a new feature for the firmware inject mechanism. When trying to re-build U-Boot as an oot build for the Karo QSBASE93 Evalkit (for QS93 Solder-Down System-on-Module) it became apparent U-Boot wants some of those binary blobs in build folder instead of source

[ptxdist] [PATCH v2 3/4] ptxd_make_world_inject: Escape inject path and files

2024-05-06 Thread Alexander Dahl
Same as in ptxd_make_world_common for all the other variables set in make and used in shell. Signed-off-by: Alexander Dahl --- Notes: v2: - no change v1: - implicit rules/post/ptxd_make_world_inject.make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff