* [PATCH v3 1/4] i.mx6: signed boot: add habv4-imx6-gencsf.h to the flash header of the PHYTEC boards @ 2019-07-18 8:01 Maik Otto 2019-07-18 8:01 ` [PATCH v3 2/4] imx6: added fit image signature to the devicetree for " Maik Otto ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Maik Otto @ 2019-07-18 8:01 UTC (permalink / raw) To: barebox the habv4-imx6-gencsf.h is necessary in the board flash header to build a signed barebox Signed-off-by: Maik Otto <m.otto@phytec.de> --- Changes in v3: - nothing Changes in v2: - no changes, was Patch 3/4 in v1 --- .../phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg | 1 + .../phytec-som-imx6/flash-header-phytec-pcm058dl-1gib-32bit.imxcfg | 1 + .../arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg | 1 + .../boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg | 2 ++ .../arm/boards/phytec-som-imx6/flash-header-phytec-pcm058qp-1gib.imxcfg | 1 + .../boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-2gib.imxcfg | 1 + arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-4gib.imxcfg | 1 + .../phytec-som-imx6/flash-header-phytec-pfla02-512mb-1bank.imxcfg | 1 + .../phytec-som-imx6/flash-header-phytec-pfla02dl-1gib-1bank.imxcfg | 1 + .../arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib.imxcfg | 1 + .../phytec-som-imx6/flash-header-phytec-pfla02s-128mb-1bank.imxcfg | 1 + .../phytec-som-imx6/flash-header-phytec-pfla02s-256mb-1bank.imxcfg | 1 + .../phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg | 1 + 21 files changed, 22 insertions(+) diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg index 62a24ed..bb4fbeb 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg @@ -7,3 +7,4 @@ wm 32 0x021b0000 0x831a0000 #include "flash-header-phytec-pcaaxl3.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg index bab726d..990c34b 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg @@ -7,3 +7,4 @@ wm 32 0x021b0000 0xc21a0000 #include "flash-header-phytec-pcaaxl3.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg index 512f6cb..7c56c24 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg @@ -7,3 +7,4 @@ wm 32 0x021b0000 0xc31a0000 #include "flash-header-phytec-pcaaxl3.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg index 4a827e4..b93e81f 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg @@ -7,3 +7,4 @@ wm 32 0x021B0000 0x83180000 #include "flash-header-phytec-pcl063.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg index c4122d2..26998c3 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg @@ -7,3 +7,4 @@ wm 32 0x021B0000 0x84180000 #include "flash-header-phytec-pcl063.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg index 5df46b9..0042909 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x831A0000 #include "flash-header-phytec-pcm058.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg index 54c9e41..8a09036 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x841A0000 #include "flash-header-phytec-pcm058.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib-32bit.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib-32bit.imxcfg index bf95d0f..c949f98 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib-32bit.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib-32bit.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x84190000 #include "flash-header-phytec-pcm058dl.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg index f047253..3ac7e4e 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x831A0000 #include "flash-header-phytec-pcm058dl.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg index bf50190..bb8cdc9 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg @@ -6,3 +6,5 @@ wm 32 0x021b0000 0x82190000 #include "flash-header-phytec-pcm058dl.h" +#include <mach/habv4-imx6-gencsf.h> + diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058qp-1gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058qp-1gib.imxcfg index bf85f0a..3ed5b34 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058qp-1gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058qp-1gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x831A0000 #include "flash-header-phytec-pcm058qp.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg index 75dc982..02f3fa7 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x831a0000 #include "flash-header-phytec-pfla02.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg index 1f1fbe5..dd142a2 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0xc21a0000 #include "flash-header-phytec-pfla02.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-2gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-2gib.imxcfg index aa01c05..3f9d11d 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-2gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-2gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0xC31A0000 #include "flash-header-phytec-pfla02.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-4gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-4gib.imxcfg index c8d33cf..fdb1d15 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-4gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-4gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0xC41A0000 #include "flash-header-phytec-pfla02.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-512mb-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-512mb-1bank.imxcfg index d6bbe1f..f4f150e 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-512mb-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02-512mb-1bank.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x821a0000 #include "flash-header-phytec-pfla02.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib-1bank.imxcfg index 7b64e5d..b2a0521 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib-1bank.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x831a0000 #include "flash-header-phytec-pfla02dl.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib.imxcfg index 04c489d..e03e25e 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0xc21a0000 #include "flash-header-phytec-pfla02dl.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-128mb-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-128mb-1bank.imxcfg index ebe5a96..58c1576 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-128mb-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-128mb-1bank.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x82180000 #include "flash-header-phytec-pfla02dl.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-256mb-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-256mb-1bank.imxcfg index 5f1585a..9975e21 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-256mb-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-256mb-1bank.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x82190000 #include "flash-header-phytec-pfla02dl.h" +#include <mach/habv4-imx6-gencsf.h> diff --git a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg index 5ff3ec6..edc396b 100644 --- a/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg +++ b/arch/arm/boards/phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg @@ -6,3 +6,4 @@ wm 32 0x021b0000 0x83190000 #include "flash-header-phytec-pfla02dl.h" +#include <mach/habv4-imx6-gencsf.h> -- 2.7.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 2/4] imx6: added fit image signature to the devicetree for PHYTEC boards 2019-07-18 8:01 [PATCH v3 1/4] i.mx6: signed boot: add habv4-imx6-gencsf.h to the flash header of the PHYTEC boards Maik Otto @ 2019-07-18 8:01 ` Maik Otto 2019-07-18 8:02 ` [PATCH v3 3/4] Kconfig: add selection for creation of signed/encrypted HABV4 images Maik Otto 2019-07-18 8:02 ` [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 Maik Otto 2 siblings, 0 replies; 9+ messages in thread From: Maik Otto @ 2019-07-18 8:01 UTC (permalink / raw) To: barebox the barebox checks the signed FIT-Image with a Public Key, which is stored for the PHYTEC i.MX6 boards in the device tree Signed-off-by: Maik Otto <m.otto@phytec.de> --- Changes in v3: - move #if after the existing /dtc-v1/ and drop else after review by Ahmad Fatoum Changes in v2: - no changes, was Patch 4/4 in v1 --- arch/arm/dts/imx6dl-phytec-pbab01.dts | 4 +++- arch/arm/dts/imx6dl-phytec-phyboard-subra.dts | 3 +++ arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 4 +++- arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 4 +++- arch/arm/dts/imx6q-phytec-pbaa03.dts | 3 +++ arch/arm/dts/imx6q-phytec-pbab01.dts | 3 +++ arch/arm/dts/imx6q-phytec-phyboard-alcor.dts | 3 +++ arch/arm/dts/imx6q-phytec-phyboard-subra.dts | 3 +++ arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts | 4 +++- arch/arm/dts/imx6q-phytec-phycore-som-nand.dts | 4 +++- arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts | 3 +++ arch/arm/dts/imx6s-phytec-pbab01.dts | 4 +++- arch/arm/dts/imx6ul-phytec-phycore-som.dts | 4 +++- arch/arm/dts/imx6ull-phytec-phycore-som-lc.dts | 4 +++- arch/arm/dts/imx6ull-phytec-phycore-som.dts | 4 +++- 15 files changed, 45 insertions(+), 9 deletions(-) diff --git a/arch/arm/dts/imx6dl-phytec-pbab01.dts b/arch/arm/dts/imx6dl-phytec-pbab01.dts index d10fbf6..4fe3c30 100644 --- a/arch/arm/dts/imx6dl-phytec-pbab01.dts +++ b/arch/arm/dts/imx6dl-phytec-pbab01.dts @@ -10,7 +10,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6dl-phytec-pfla02.dtsi" #include "imx6qdl-phytec-pbab01.dtsi" diff --git a/arch/arm/dts/imx6dl-phytec-phyboard-subra.dts b/arch/arm/dts/imx6dl-phytec-phyboard-subra.dts index 3d1069a..430745f 100644 --- a/arch/arm/dts/imx6dl-phytec-phyboard-subra.dts +++ b/arch/arm/dts/imx6dl-phytec-phyboard-subra.dts @@ -10,6 +10,9 @@ */ /dts-v1/; +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6s-phytec-pfla02.dtsi" #include "imx6qdl-phytec-phyboard-subra.dtsi" diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts index e602b77..dfa91ab 100644 --- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts @@ -11,7 +11,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6dl.dtsi> #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts index 77f1434..3127b82 100644 --- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts @@ -10,7 +10,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6dl.dtsi> #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6q-phytec-pbaa03.dts b/arch/arm/dts/imx6q-phytec-pbaa03.dts index 4724a02..5216a2d 100644 --- a/arch/arm/dts/imx6q-phytec-pbaa03.dts +++ b/arch/arm/dts/imx6q-phytec-pbaa03.dts @@ -10,6 +10,9 @@ */ /dts-v1/; +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6q-phytec-pcaaxl3.dtsi" / { diff --git a/arch/arm/dts/imx6q-phytec-pbab01.dts b/arch/arm/dts/imx6q-phytec-pbab01.dts index 2f816dd..91562a2 100644 --- a/arch/arm/dts/imx6q-phytec-pbab01.dts +++ b/arch/arm/dts/imx6q-phytec-pbab01.dts @@ -10,6 +10,9 @@ */ /dts-v1/; +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6q-phytec-pfla02.dtsi" #include "imx6qdl-phytec-pbab01.dtsi" diff --git a/arch/arm/dts/imx6q-phytec-phyboard-alcor.dts b/arch/arm/dts/imx6q-phytec-phyboard-alcor.dts index 1c4a785..d97c7f1 100644 --- a/arch/arm/dts/imx6q-phytec-phyboard-alcor.dts +++ b/arch/arm/dts/imx6q-phytec-phyboard-alcor.dts @@ -10,6 +10,9 @@ */ /dts-v1/; +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6q-phytec-pfla02.dtsi" / { diff --git a/arch/arm/dts/imx6q-phytec-phyboard-subra.dts b/arch/arm/dts/imx6q-phytec-phyboard-subra.dts index 561e985..4986111 100644 --- a/arch/arm/dts/imx6q-phytec-phyboard-subra.dts +++ b/arch/arm/dts/imx6q-phytec-phyboard-subra.dts @@ -11,6 +11,9 @@ */ /dts-v1/; +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6q-phytec-pfla02.dtsi" #include "imx6qdl-phytec-phyboard-subra.dtsi" diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts index 94a7038..ff30f4d 100644 --- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts +++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts @@ -10,7 +10,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6q.dtsi> #include "imx6q.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts index 6d82ec3..114665d 100644 --- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts +++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts @@ -10,7 +10,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6q.dtsi> #include "imx6q.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts index 437457c..1f39fb3 100644 --- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts +++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts @@ -11,6 +11,9 @@ */ /dts-v1/; +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6qp.dtsi> #include "imx6qdl-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6s-phytec-pbab01.dts b/arch/arm/dts/imx6s-phytec-pbab01.dts index 1cb5a23..516d20f 100644 --- a/arch/arm/dts/imx6s-phytec-pbab01.dts +++ b/arch/arm/dts/imx6s-phytec-pbab01.dts @@ -10,7 +10,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include "imx6s-phytec-pfla02.dtsi" #include "imx6qdl-phytec-pbab01.dtsi" diff --git a/arch/arm/dts/imx6ul-phytec-phycore-som.dts b/arch/arm/dts/imx6ul-phytec-phycore-som.dts index 6d18767..bdc3a00 100644 --- a/arch/arm/dts/imx6ul-phytec-phycore-som.dts +++ b/arch/arm/dts/imx6ul-phytec-phycore-som.dts @@ -11,7 +11,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6ul.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6ull-phytec-phycore-som-lc.dts b/arch/arm/dts/imx6ull-phytec-phycore-som-lc.dts index 94a7830..7d3e780 100644 --- a/arch/arm/dts/imx6ull-phytec-phycore-som-lc.dts +++ b/arch/arm/dts/imx6ull-phytec-phycore-som-lc.dts @@ -5,7 +5,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6ull.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" diff --git a/arch/arm/dts/imx6ull-phytec-phycore-som.dts b/arch/arm/dts/imx6ull-phytec-phycore-som.dts index 4d73010..d35d1ad 100644 --- a/arch/arm/dts/imx6ull-phytec-phycore-som.dts +++ b/arch/arm/dts/imx6ull-phytec-phycore-som.dts @@ -11,7 +11,9 @@ */ /dts-v1/; - +#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY +#include CONFIG_BOOTM_FITIMAGE_PUBKEY +#endif #include <arm/imx6ull.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" -- 2.7.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 3/4] Kconfig: add selection for creation of signed/encrypted HABV4 images 2019-07-18 8:01 [PATCH v3 1/4] i.mx6: signed boot: add habv4-imx6-gencsf.h to the flash header of the PHYTEC boards Maik Otto 2019-07-18 8:01 ` [PATCH v3 2/4] imx6: added fit image signature to the devicetree for " Maik Otto @ 2019-07-18 8:02 ` Maik Otto 2019-07-18 8:02 ` [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 Maik Otto 2 siblings, 0 replies; 9+ messages in thread From: Maik Otto @ 2019-07-18 8:02 UTC (permalink / raw) To: barebox Insert in the Kconfig the selection for the build type signed, usb signed, encrypted/signed and unsigned images for NXP i.MX HABV4 Signed-off-by: Maik Otto <m.otto@phytec.de> --- Changes in v3: - nothing Changes in v2: - was Patch 1/4 in v1 - select of more different signed/encrypted image variants possible --- arch/arm/mach-imx/Kconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 6a6aab6..b4cdaad 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -851,6 +851,28 @@ config HABV4_IMG_CRT_PEM endif +if HABV4 + +config HABV4_IMAGE_SIGNED + bool "build signed images" + help + enable the creation of a signed image, if the habv4-imx6-gencsf.h + included in the flash-header and the NXP cst Tool is available + +config HABV4_IMAGE_SIGNED_USB + bool "build signed USB images" + help + enable the creation of a usb signed image, if the habv4-imx6-gencsf.h + included in the flash-header and the NXP cst Tool is available + +config HABV4_IMAGE_SIGNED_ENCRYPTED + bool "build signed encrypted images" + help + enable the creation of the encrypted image, if the habv4-imx6-gencsf.h + included in the flash-header and the NXP cst Tool is available + +endif + config HABV3 tristate "HABv3 support" select HAB -- 2.7.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 2019-07-18 8:01 [PATCH v3 1/4] i.mx6: signed boot: add habv4-imx6-gencsf.h to the flash header of the PHYTEC boards Maik Otto 2019-07-18 8:01 ` [PATCH v3 2/4] imx6: added fit image signature to the devicetree for " Maik Otto 2019-07-18 8:02 ` [PATCH v3 3/4] Kconfig: add selection for creation of signed/encrypted HABV4 images Maik Otto @ 2019-07-18 8:02 ` Maik Otto 2019-08-05 11:02 ` Sascha Hauer 2 siblings, 1 reply; 9+ messages in thread From: Maik Otto @ 2019-07-18 8:02 UTC (permalink / raw) To: barebox add in the images/Makefile.imx the support of building for signed, usb signed and encrypted/signed images for NXP i.MX HABV4 support for NXP i.mx6, i.mx7 and i.mx8 Signed-off-by: Maik Otto <m.otto@phytec.de> --- Changes in v3: - nothing Changes in v2: - was Patch 2/4 in v1 - no dynamic variable, parallel building of different image types now --- images/Makefile.imx | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 321 insertions(+), 1 deletion(-) diff --git a/images/Makefile.imx b/images/Makefile.imx index 9a7187a..9c70703 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -147,216 +147,388 @@ pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img +FILE_barebox-datamodul-edm-qmx6-s.img = start_imx6_realq7.pblb.simximg +FILE_barebox-datamodul-edm-qmx6-us.img = start_imx6_realq7.pblb.usimximg +FILE_barebox-datamodul-edm-qmx6-es.img = start_imx6_realq7.pblb.esimximg +habv4image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6 pblb-$(CONFIG_MACH_GUF_SANTARO) += start_imx6q_guf_santaro CFG_start_imx6q_guf_santaro.pblb.imximg = $(board)/guf-santaro/flash-header.imxcfg FILE_barebox-guf-santaro.img = start_imx6q_guf_santaro.pblb.imximg image-$(CONFIG_MACH_GUF_SANTARO) += barebox-guf-santaro.img +FILE_barebox-guf-santaro-s.img = start_imx6q_guf_santaro.pblb.simximg +FILE_barebox-guf-santaro-us.img = start_imx6q_guf_santaro.pblb.usimximg +FILE_barebox-guf-santaro-es.img = start_imx6q_guf_santaro.pblb.esimximg +habv4image-$(CONFIG_MACH_GUF_SANTARO) += barebox-guf-santaro pblb-$(CONFIG_MACH_GK802) += start_imx6_gk802 CFG_start_imx6_gk802.pblb.imximg = $(board)/gk802/flash-header.imxcfg FILE_barebox-gk802.img = start_imx6_gk802.pblb.imximg image-$(CONFIG_MACH_GK802) += barebox-gk802.img +FILE_barebox-gk802-s.img = start_imx6_gk802.pblb.simximg +FILE_barebox-gk802-us.img = start_imx6_gk802.pblb.usimximg +FILE_barebox-gk802-es.img = start_imx6_gk802.pblb.esimximg +habv4image-$(CONFIG_MACH_GK802) += barebox-gk802 pblb-$(CONFIG_MACH_TQMA6X) += start_imx6dl_mba6x CFG_start_imx6dl_mba6x.pblb.imximg = $(board)/tqma6x/flash-header-tqma6dl.imxcfg FILE_barebox-tq-tqma6s-mba6x.img = start_imx6dl_mba6x.pblb.imximg image-$(CONFIG_MACH_TQMA6X) += barebox-tq-tqma6s-mba6x.img +FILE_barebox-tq-tqma6s-mba6x-s.img = start_imx6dl_mba6x.pblb.simximg +FILE_barebox-tq-tqma6s-mba6x-us.img = start_imx6dl_mba6x.pblb.usimximg +FILE_barebox-tq-tqma6s-mba6x-es.img = start_imx6dl_mba6x.pblb.esimximg +habv4image-$(CONFIG_MACH_TQMA6X) += barebox-tq-tqma6s-mba6x pblb-$(CONFIG_MACH_TQMA6X) += start_imx6q_mba6x CFG_start_imx6q_mba6x.pblb.imximg = $(board)/tqma6x/flash-header-tqma6q.imxcfg FILE_barebox-tq-tqma6q-mba6x.img = start_imx6q_mba6x.pblb.imximg image-$(CONFIG_MACH_TQMA6X) += barebox-tq-tqma6q-mba6x.img +FILE_barebox-tq-tqma6q-mba6x-s.img = start_imx6q_mba6x.pblb.simximg +FILE_barebox-tq-tqma6q-mba6x-us.img = start_imx6q_mba6x.pblb.usimximg +FILE_barebox-tq-tqma6q-mba6x-es.img = start_imx6q_mba6x.pblb.esimximg +habv4image-$(CONFIG_MACH_TQMA6X) += barebox-tq-tqma6q-mba6x pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01_4gib CFG_start_phytec_pbab01_4gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-4gib.imxcfg FILE_barebox-phytec-pbab01-4gib.img = start_phytec_pbab01_4gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-4gib.img +FILE_barebox-phytec-pbab01-4gib-s.img = start_phytec_pbab01_4gib.pblb.simximg +FILE_barebox-phytec-pbab01-4gib-us.img = start_phytec_pbab01_4gib.pblb.usimximg +FILE_barebox-phytec-pbab01-4gib-es.img = start_phytec_pbab01_4gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-4gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01_2gib CFG_start_phytec_pbab01_2gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-2gib.imxcfg FILE_barebox-phytec-pbab01-2gib.img = start_phytec_pbab01_2gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-2gib.img +FILE_barebox-phytec-pbab01-2gib-s.img = start_phytec_pbab01_2gib.pblb.simximg +FILE_barebox-phytec-pbab01-2gib-us.img = start_phytec_pbab01_2gib.pblb.usimximg +FILE_barebox-phytec-pbab01-2gib-es.img = start_phytec_pbab01_2gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-2gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01_1gib CFG_start_phytec_pbab01_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg FILE_barebox-phytec-pbab01-1gib.img = start_phytec_pbab01_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-1gib.img +FILE_barebox-phytec-pbab01-1gib-s.img = start_phytec_pbab01_1gib.pblb.simximg +FILE_barebox-phytec-pbab01-1gib-us.img = start_phytec_pbab01_1gib.pblb.usimximg +FILE_barebox-phytec-pbab01-1gib-es.img = start_phytec_pbab01_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01_1gib_1bank CFG_start_phytec_pbab01_1gib_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg FILE_barebox-phytec-pbab01-1gib-1bank.img = start_phytec_pbab01_1gib_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-1gib-1bank.img +FILE_barebox-phytec-pbab01-1gib-1bank-s.img = start_phytec_pbab01_1gib_1bank.pblb.simximg +FILE_barebox-phytec-pbab01-1gib-1bank-us.img = start_phytec_pbab01_1gib_1bank.pblb.usimximg +FILE_barebox-phytec-pbab01-1gib-1bank-es.img = start_phytec_pbab01_1gib_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-1gib-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01_512mb_1bank CFG_start_phytec_pbab01_512mb_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-512mb-1bank.imxcfg FILE_barebox-phytec-pbab01-512mb-1bank.img = start_phytec_pbab01_512mb_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-512mb-1bank.img +FILE_barebox-phytec-pbab01-512mb-1bank-s.img = start_phytec_pbab01_512mb_1bank.pblb.simximg +FILE_barebox-phytec-pbab01-512mb-1bank-us.img = start_phytec_pbab01_512mb_1bank.pblb.usimximg +FILE_barebox-phytec-pbab01-512mb-1bank-es.img = start_phytec_pbab01_512mb_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01-512mb-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01dl_1gib CFG_start_phytec_pbab01dl_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib.imxcfg FILE_barebox-phytec-pbab01dl-1gib.img = start_phytec_pbab01dl_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01dl-1gib.img +FILE_barebox-phytec-pbab01dl-1gib-s.img = start_phytec_pbab01dl_1gib.pblb.simximg +FILE_barebox-phytec-pbab01dl-1gib-us.img = start_phytec_pbab01dl_1gib.pblb.usimximg +FILE_barebox-phytec-pbab01dl-1gib-es.img = start_phytec_pbab01dl_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01dl-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01dl_1gib_1bank CFG_start_phytec_pbab01dl_1gib_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02dl-1gib-1bank.imxcfg FILE_barebox-phytec-pbab01dl-1gib-1bank.img = start_phytec_pbab01dl_1gib_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01dl-1gib-1bank.img +FILE_barebox-phytec-pbab01dl-1gib-1bank-s.img = start_phytec_pbab01dl_1gib_1bank.pblb.simximg +FILE_barebox-phytec-pbab01dl-1gib-1bank-us.img = start_phytec_pbab01dl_1gib_1bank.pblb.usimximg +FILE_barebox-phytec-pbab01dl-1gib-1bank-es.img = start_phytec_pbab01dl_1gib_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01dl-1gib-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01s_512mb_1bank CFG_start_phytec_pbab01s_512mb_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg FILE_barebox-phytec-pbab01s-512mb-1bank.img = start_phytec_pbab01s_512mb_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01s-512mb-1bank.img +FILE_barebox-phytec-pbab01s-512mb-1bank-s.img = start_phytec_pbab01s_512mb_1bank.pblb.simximg +FILE_barebox-phytec-pbab01s-512mb-1bank-us.img = start_phytec_pbab01s_512mb_1bank.pblb.usimximg +FILE_barebox-phytec-pbab01s-512mb-1bank-es.img = start_phytec_pbab01s_512mb_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01s-512mb-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01s_256mb_1bank CFG_start_phytec_pbab01s_256mb_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02s-256mb-1bank.imxcfg FILE_barebox-phytec-pbab01s-256mb-1bank.img = start_phytec_pbab01s_256mb_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01s-256mb-1bank.img +FILE_barebox-phytec-pbab01s-256mb-1bank-s.img = start_phytec_pbab01s_256mb_1bank.pblb.simximg +FILE_barebox-phytec-pbab01s-256mb-1bank-us.img = start_phytec_pbab01s_256mb_1bank.pblb.usimximg +FILE_barebox-phytec-pbab01s-256mb-1bank-es.img = start_phytec_pbab01s_256mb_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01s-256mb-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbab01s_128mb_1bank CFG_start_phytec_pbab01s_128mb_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02s-128mb-1bank.imxcfg FILE_barebox-phytec-pbab01s-128mb-1bank.img = start_phytec_pbab01s_128mb_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01s-128mb-1bank.img +FILE_barebox-phytec-pbab01s-128mb-1bank-s.img = start_phytec_pbab01s_128mb_1bank.pblb.simximg +FILE_barebox-phytec-pbab01s-128mb-1bank-us.img = start_phytec_pbab01s_128mb_1bank.pblb.usimximg +FILE_barebox-phytec-pbab01s-128mb-1bank-es.img = start_phytec_pbab01s_128mb_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbab01s-128mb-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phyboard_alcor_1gib CFG_start_phytec_phyboard_alcor_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-1gib.imxcfg FILE_barebox-phytec-phyboard-alcor-1gib.img = start_phytec_phyboard_alcor_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phyboard-alcor-1gib.img +FILE_barebox-phytec-phyboard-alcor-1gib-s.img = start_phytec_phyboard_alcor_1gib.pblb.simximg +FILE_barebox-phytec-phyboard-alcor-1gib-us.img = start_phytec_phyboard_alcor_1gib.pblb.usimximg +FILE_barebox-phytec-phyboard-alcor-1gib-es.img = start_phytec_phyboard_alcor_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phyboard-alcor-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phyboard_subra_512mb_1bank CFG_start_phytec_phyboard_subra_512mb_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02s-512mb-1bank.imxcfg FILE_barebox-phytec-phyboard-subra-512mb-1bank.img = start_phytec_phyboard_subra_512mb_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phyboard-subra-512mb-1bank.img +FILE_barebox-phytec-phyboard-subra-512mb-1bank-s.img = start_phytec_phyboard_subra_512mb_1bank.pblb.simximg +FILE_barebox-phytec-phyboard-subra-512mb-1bank-us.img = start_phytec_phyboard_subra_512mb_1bank.pblb.usimximg +FILE_barebox-phytec-phyboard-subra-512mb-1bank-es.img = start_phytec_phyboard_subra_512mb_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phyboard-subra-512mb-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phyboard_subra_1gib_1bank CFG_start_phytec_phyboard_subra_1gib_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pfla02-1gib-1bank.imxcfg FILE_barebox-phytec-phyboard-subra-1gib-1bank.img = start_phytec_phyboard_subra_1gib_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phyboard-subra-1gib-1bank.img +FILE_barebox-phytec-phyboard-subra-1gib-1bank-s.img = start_phytec_phyboard_subra_1gib_1bank.pblb.simximg +FILE_barebox-phytec-phyboard-subra-1gib-1bank-us.img = start_phytec_phyboard_subra_1gib_1bank.pblb.usimximg +FILE_barebox-phytec-phyboard-subra-1gib-1bank-es.img = start_phytec_phyboard_subra_1gib_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phyboard-subra-1gib-1bank pblb-$(CONFIG_MACH_DFI_FS700_M60) += start_imx6dl_dfi_fs700_m60_6s CFG_start_imx6dl_dfi_fs700_m60_6s.pblb.imximg = $(board)/dfi-fs700-m60/flash-header-fs700-m60-6s.imxcfg FILE_barebox-dfi-fs700-m60-6s.img = start_imx6dl_dfi_fs700_m60_6s.pblb.imximg image-$(CONFIG_MACH_DFI_FS700_M60) += barebox-dfi-fs700-m60-6s.img +FILE_barebox-dfi-fs700-m60-6s-s.img = start_imx6dl_dfi_fs700_m60_6s.pblb.simximg +FILE_barebox-dfi-fs700-m60-6s-us.img = start_imx6dl_dfi_fs700_m60_6s.pblb.usimximg +FILE_barebox-dfi-fs700-m60-6s-es.img = start_imx6dl_dfi_fs700_m60_6s.pblb.esimximg +habv4image-$(CONFIG_MACH_DFI_FS700_M60) += barebox-dfi-fs700-m60-6s pblb-$(CONFIG_MACH_DFI_FS700_M60) += start_imx6q_dfi_fs700_m60_6q_micron CFG_start_imx6q_dfi_fs700_m60_6q_micron.pblb.imximg = $(board)/dfi-fs700-m60/flash-header-fs700-m60-6q-micron.imxcfg FILE_barebox-dfi-fs700-m60-6q-micron.img = start_imx6q_dfi_fs700_m60_6q_micron.pblb.imximg image-$(CONFIG_MACH_DFI_FS700_M60) += barebox-dfi-fs700-m60-6q-micron.img +FILE_barebox-dfi-fs700-m60-6q-micron-s.img = start_imx6q_dfi_fs700_m60_6q_micron.pblb.simximg +FILE_barebox-dfi-fs700-m60-6q-micron-us.img = start_imx6q_dfi_fs700_m60_6q_micron.pblb.usimximg +FILE_barebox-dfi-fs700-m60-6q-micron-es.img = start_imx6q_dfi_fs700_m60_6q_micron.pblb.esimximg +habv4image-$(CONFIG_MACH_DFI_FS700_M60) += barebox-dfi-fs700-m60-6q-micron pblb-$(CONFIG_MACH_DFI_FS700_M60) += start_imx6q_dfi_fs700_m60_6q_nanya CFG_start_imx6q_dfi_fs700_m60_6q_nanya.pblb.imximg = $(board)/dfi-fs700-m60/flash-header-fs700-m60-6q-nanya.imxcfg FILE_barebox-dfi-fs700-m60-6q-nanya.img = start_imx6q_dfi_fs700_m60_6q_nanya.pblb.imximg image-$(CONFIG_MACH_DFI_FS700_M60) += barebox-dfi-fs700-m60-6q-nanya.img +FILE_barebox-dfi-fs700-m60-6q-nanya-s.img = start_imx6q_dfi_fs700_m60_6q_nanya.pblb.simximg +FILE_barebox-dfi-fs700-m60-6q-nanya-us.img = start_imx6q_dfi_fs700_m60_6q_nanya.pblb.usimximg +FILE_barebox-dfi-fs700-m60-6q-nanya-es.img = start_imx6q_dfi_fs700_m60_6q_nanya.pblb.esimximg +habv4image-$(CONFIG_MACH_DFI_FS700_M60) += barebox-dfi-fs700-m60-6q-nanya pblb-$(CONFIG_MACH_SABRELITE) += start_imx6q_sabrelite CFG_start_imx6q_sabrelite.pblb.imximg = $(board)/freescale-mx6-sabrelite/flash-header-mx6-sabrelite.imxcfg FILE_barebox-freescale-imx6q-sabrelite.img = start_imx6q_sabrelite.pblb.imximg image-$(CONFIG_MACH_SABRELITE) += barebox-freescale-imx6q-sabrelite.img +FILE_barebox-freescale-imx6q-sabrelite-s.img = start_imx6q_sabrelite.pblb.simximg +FILE_barebox-freescale-imx6q-sabrelite-us.img = start_imx6q_sabrelite.pblb.usimximg +FILE_barebox-freescale-imx6q-sabrelite-es.img = start_imx6q_sabrelite.pblb.esimximg +habv4image-$(CONFIG_MACH_SABRELITE) += barebox-freescale-imx6q-sabrelite pblb-$(CONFIG_MACH_SABRELITE) += start_imx6dl_sabrelite CFG_start_imx6dl_sabrelite.pblb.imximg = $(board)/freescale-mx6-sabrelite/flash-header-mx6-sabrelite.imxcfg FILE_barebox-freescale-imx6dl-sabrelite.img = start_imx6dl_sabrelite.pblb.imximg image-$(CONFIG_MACH_SABRELITE) += barebox-freescale-imx6dl-sabrelite.img +FILE_barebox-freescale-imx6dl-sabrelite-s.img = start_imx6dl_sabrelite.pblb.simximg +FILE_barebox-freescale-imx6dl-sabrelite-us.img = start_imx6dl_sabrelite.pblb.usimximg +FILE_barebox-freescale-imx6dl-sabrelite-es.img = start_imx6dl_sabrelite.pblb.esimximg +habv4image-$(CONFIG_MACH_SABRELITE) += barebox-freescale-imx6dl-sabrelite pblb-$(CONFIG_MACH_SABRESD) += start_imx6q_sabresd CFG_start_imx6q_sabresd.pblb.imximg = $(board)/freescale-mx6-sabresd/flash-header-mx6-sabresd.imxcfg FILE_barebox-freescale-imx6q-sabresd.img = start_imx6q_sabresd.pblb.imximg image-$(CONFIG_MACH_SABRESD) += barebox-freescale-imx6q-sabresd.img +FILE_barebox-freescale-imx6q-sabresd-s.img = start_imx6q_sabresd.pblb.simximg +FILE_barebox-freescale-imx6q-sabresd-us.img = start_imx6q_sabresd.pblb.usimximg +FILE_barebox-freescale-imx6q-sabresd-es.img = start_imx6q_sabresd.pblb.esimximg +habv4image-$(CONFIG_MACH_SABRESD) += barebox-freescale-imx6q-sabresd pblb-$(CONFIG_MACH_UDOO_NEO) += start_imx6sx_udoo_neo CFG_start_imx6sx_udoo_neo.pblb.imximg = $(board)/udoo-neo/flash-header-mx6sx-udoo-neo_full.imxcfg FILE_barebox-udoo-neo.img = start_imx6sx_udoo_neo.pblb.imximg image-$(CONFIG_MACH_UDOO_NEO) += barebox-udoo-neo.img +FILE_barebox-udoo-neo-s.img = start_imx6sx_udoo_neo.pblb.simximg +FILE_barebox-udoo-neo-us.img = start_imx6sx_udoo_neo.pblb.usimximg +FILE_barebox-udoo-neo-es.img = start_imx6sx_udoo_neo.pblb.esimximg +habv4image-$(CONFIG_MACH_UDOO_NEO) += barebox-udoo-neo pblb-$(CONFIG_MACH_FREESCALE_IMX6SX_SABRESDB) += start_imx6sx_sabresdb CFG_start_imx6sx_sabresdb.pblb.imximg = $(board)/freescale-mx6sx-sabresdb/flash-header-mx6sx-sabresdb.imxcfg FILE_barebox-freescale-imx6sx-sabresdb.img = start_imx6sx_sabresdb.pblb.imximg image-$(CONFIG_MACH_FREESCALE_IMX6SX_SABRESDB) += barebox-freescale-imx6sx-sabresdb.img +FILE_barebox-freescale-imx6sx-sabresdb-s.img = start_imx6sx_sabresdb.pblb.simximg +FILE_barebox-freescale-imx6sx-sabresdb-us.img = start_imx6sx_sabresdb.pblb.usimximg +FILE_barebox-freescale-imx6sx-sabresdb-es.img = start_imx6sx_sabresdb.pblb.esimximg +habv4image-$(CONFIG_MACH_FREESCALE_IMX6SX_SABRESDB) += barebox-freescale-imx6sx-sabresdb pblb-$(CONFIG_MACH_TECHNEXION_WANDBOARD) += start_imx6_wandboard CFG_start_imx6_wandboard.pblb.imximg = $(board)/technexion-wandboard/flash-header-technexion-wandboard.imxcfg FILE_barebox-imx6-wandboard.img = start_imx6_wandboard.pblb.imximg image-$(CONFIG_MACH_TECHNEXION_WANDBOARD) += barebox-imx6-wandboard.img +FILE_barebox-imx6-wandboard-s.img = start_imx6_wandboard.pblb.simximg +FILE_barebox-imx6-wandboard-us.img = start_imx6_wandboard.pblb.usimximg +FILE_barebox-imx6-wandboard-es.img = start_imx6_wandboard.pblb.esimximg +habv4image-$(CONFIG_MACH_TECHNEXION_WANDBOARD) += barebox-imx6-wandboard pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard_microsom_i1 CFG_start_hummingboard_microsom_i1.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i1.imxcfg FILE_barebox-solidrun-hummingboard-microsom-i1.img = start_hummingboard_microsom_i1.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i1.img +FILE_barebox-solidrun-hummingboard-microsom-i1-s.img = start_hummingboard_microsom_i1.pblb.simximg +FILE_barebox-solidrun-hummingboard-microsom-i1-us.img = start_hummingboard_microsom_i1.pblb.usimximg +FILE_barebox-solidrun-hummingboard-microsom-i1-es.img = start_hummingboard_microsom_i1.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i1 pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard_microsom_i2 CFG_start_hummingboard_microsom_i2.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i2.imxcfg FILE_barebox-solidrun-hummingboard-microsom-i2.img = start_hummingboard_microsom_i2.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i2.img +FILE_barebox-solidrun-hummingboard-microsom-i2-s.img = start_hummingboard_microsom_i2.pblb.simximg +FILE_barebox-solidrun-hummingboard-microsom-i2-us.img = start_hummingboard_microsom_i2.pblb.usimximg +FILE_barebox-solidrun-hummingboard-microsom-i2-es.img = start_hummingboard_microsom_i2.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i2 pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard_microsom_i2ex CFG_start_hummingboard_microsom_i2ex.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i2eX.imxcfg FILE_barebox-solidrun-hummingboard-microsom-i2eX.img = start_hummingboard_microsom_i2ex.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i2eX.img +FILE_barebox-solidrun-hummingboard-microsom-i2eX-s.img = start_hummingboard_microsom_i2ex.pblb.simximg +FILE_barebox-solidrun-hummingboard-microsom-i2eX-us.img = start_hummingboard_microsom_i2ex.pblb.usimximg +FILE_barebox-solidrun-hummingboard-microsom-i2eX-es.img = start_hummingboard_microsom_i2ex.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i2eX pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard_microsom_i4 CFG_start_hummingboard_microsom_i4.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i4.imxcfg FILE_barebox-solidrun-hummingboard-microsom-i4.img = start_hummingboard_microsom_i4.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i4.img +FILE_barebox-solidrun-hummingboard-microsom-i4-s.img = start_hummingboard_microsom_i4.pblb.simximg +FILE_barebox-solidrun-hummingboard-microsom-i4-us.img = start_hummingboard_microsom_i4.pblb.usimximg +FILE_barebox-solidrun-hummingboard-microsom-i4-es.img = start_hummingboard_microsom_i4.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard-microsom-i4 pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard2_microsom_i1 CFG_start_hummingboard2_microsom_i1.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i1.imxcfg FILE_barebox-solidrun-hummingboard2-microsom-i1.img = start_hummingboard2_microsom_i1.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i1.img +FILE_barebox-solidrun-hummingboard2-microsom-i1-s.img = start_hummingboard2_microsom_i1.pblb.simximg +FILE_barebox-solidrun-hummingboard2-microsom-i1-us.img = start_hummingboard2_microsom_i1.pblb.usimximg +FILE_barebox-solidrun-hummingboard2-microsom-i1-es.img = start_hummingboard2_microsom_i1.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i1 pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard2_microsom_i2 CFG_start_hummingboard2_microsom_i2.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i2.imxcfg FILE_barebox-solidrun-hummingboard2-microsom-i2.img = start_hummingboard2_microsom_i2.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i2.img +FILE_barebox-solidrun-hummingboard2-microsom-i2-s.img = start_hummingboard2_microsom_i2.pblb.simximg +FILE_barebox-solidrun-hummingboard2-microsom-i2-us.img = start_hummingboard2_microsom_i2.pblb.usimximg +FILE_barebox-solidrun-hummingboard2-microsom-i2-es.img = start_hummingboard2_microsom_i2.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i2 pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard2_microsom_i2ex CFG_start_hummingboard2_microsom_i2ex.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i2eX.imxcfg FILE_barebox-solidrun-hummingboard2-microsom-i2eX.img = start_hummingboard2_microsom_i2ex.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i2eX.img +FILE_barebox-solidrun-hummingboard2-microsom-i2eX-s.img = start_hummingboard2_microsom_i2ex.pblb.simximg +FILE_barebox-solidrun-hummingboard2-microsom-i2eX-us.img = start_hummingboard2_microsom_i2ex.pblb.usimximg +FILE_barebox-solidrun-hummingboard2-microsom-i2eX-es.img = start_hummingboard2_microsom_i2ex.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i2eX pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_hummingboard2_microsom_i4 CFG_start_hummingboard2_microsom_i4.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i4.imxcfg FILE_barebox-solidrun-hummingboard2-microsom-i4.img = start_hummingboard2_microsom_i4.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i4.img +FILE_barebox-solidrun-hummingboard2-microsom-i4-s.img = start_hummingboard2_microsom_i4.pblb.simximg +FILE_barebox-solidrun-hummingboard2-microsom-i4-us.img = start_hummingboard2_microsom_i4.pblb.usimximg +FILE_barebox-solidrun-hummingboard2-microsom-i4-es.img = start_hummingboard2_microsom_i4.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-solidrun-hummingboard2-microsom-i4 pblb-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += start_h100_microsom_i2ex CFG_start_h100_microsom_i2ex.pblb.imximg = $(board)/solidrun-microsom/flash-header-microsom-i2eX.imxcfg FILE_barebox-auvidea-h100-microsom-i2eX.img = start_h100_microsom_i2ex.pblb.imximg image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-auvidea-h100-microsom-i2eX.img +FILE_barebox-auvidea-h100-microsom-i2eX-s.img = start_h100_microsom_i2ex.pblb.simximg +FILE_barebox-auvidea-h100-microsom-i2eX-us.img = start_h100_microsom_i2ex.pblb.usimximg +FILE_barebox-auvidea-h100-microsom-i2eX-es.img = start_h100_microsom_i2ex.pblb.esimximg +habv4image-$(CONFIG_MACH_SOLIDRUN_MICROSOM) += barebox-auvidea-h100-microsom-i2eX pblb-$(CONFIG_MACH_NITROGEN6) += start_imx6q_nitrogen6x_1g CFG_start_imx6q_nitrogen6x_1g.pblb.imximg = $(board)/boundarydevices-nitrogen6/flash-header-nitrogen6q-1g.imxcfg FILE_barebox-boundarydevices-imx6q-nitrogen6x-1g.img = start_imx6q_nitrogen6x_1g.pblb.imximg image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6q-nitrogen6x-1g.img +FILE_barebox-boundarydevices-imx6q-nitrogen6x-1g-s.img = start_imx6q_nitrogen6x_1g.pblb.simximg +FILE_barebox-boundarydevices-imx6q-nitrogen6x-1g-us.img = start_imx6q_nitrogen6x_1g.pblb.usimximg +FILE_barebox-boundarydevices-imx6q-nitrogen6x-1g-es.img = start_imx6q_nitrogen6x_1g.pblb.esimximg +habv4image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6q-nitrogen6x-1g pblb-$(CONFIG_MACH_NITROGEN6) += start_imx6q_nitrogen6x_2g CFG_start_imx6q_nitrogen6x_2g.pblb.imximg = $(board)/boundarydevices-nitrogen6/flash-header-nitrogen6q-2g.imxcfg FILE_barebox-boundarydevices-imx6q-nitrogen6x-2g.img = start_imx6q_nitrogen6x_2g.pblb.imximg image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6q-nitrogen6x-2g.img +FILE_barebox-boundarydevices-imx6q-nitrogen6x-2g-s.img = start_imx6q_nitrogen6x_2g.pblb.simximg +FILE_barebox-boundarydevices-imx6q-nitrogen6x-2g-us.img = start_imx6q_nitrogen6x_2g.pblb.usimximg +FILE_barebox-boundarydevices-imx6q-nitrogen6x-2g-es.img = start_imx6q_nitrogen6x_2g.pblb.esimximg +habv4image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6q-nitrogen6x-2g pblb-$(CONFIG_MACH_NITROGEN6) += start_imx6dl_nitrogen6x_1g CFG_start_imx6dl_nitrogen6x_1g.pblb.imximg = $(board)/boundarydevices-nitrogen6/flash-header-nitrogen6dl-1g.imxcfg FILE_barebox-boundarydevices-imx6dl-nitrogen6x-1g.img = start_imx6dl_nitrogen6x_1g.pblb.imximg image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6dl-nitrogen6x-1g.img +FILE_barebox-boundarydevices-imx6dl-nitrogen6x-1g-s.img = start_imx6dl_nitrogen6x_1g.pblb.simximg +FILE_barebox-boundarydevices-imx6dl-nitrogen6x-1g-us.img = start_imx6dl_nitrogen6x_1g.pblb.usimximg +FILE_barebox-boundarydevices-imx6dl-nitrogen6x-1g-es.img = start_imx6dl_nitrogen6x_1g.pblb.esimximg +habv4image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6dl-nitrogen6x-1g pblb-$(CONFIG_MACH_NITROGEN6) += start_imx6dl_nitrogen6x_2g CFG_start_imx6dl_nitrogen6x_2g.pblb.imximg = $(board)/boundarydevices-nitrogen6/flash-header-nitrogen6dl-2g.imxcfg FILE_barebox-boundarydevices-imx6dl-nitrogen6x-2g.img = start_imx6dl_nitrogen6x_2g.pblb.imximg image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6dl-nitrogen6x-2g.img +FILE_barebox-boundarydevices-imx6dl-nitrogen6x-2g-s.img = start_imx6dl_nitrogen6x_2g.pblb.simximg +FILE_barebox-boundarydevices-imx6dl-nitrogen6x-2g-us.img = start_imx6dl_nitrogen6x_2g.pblb.usimximg +FILE_barebox-boundarydevices-imx6dl-nitrogen6x-2g-es.img = start_imx6dl_nitrogen6x_2g.pblb.esimximg +habv4image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6dl-nitrogen6x-2g pblb-$(CONFIG_MACH_NITROGEN6) += start_imx6qp_nitrogen6_max CFG_start_imx6qp_nitrogen6_max.pblb.imximg = $(board)/boundarydevices-nitrogen6/flash-header-nitrogen6qp-max.imxcfg FILE_barebox-boundarydevices-imx6qp-nitrogen6_max.img = start_imx6qp_nitrogen6_max.pblb.imximg image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6qp-nitrogen6_max.img +FILE_barebox-boundarydevices-imx6qp-nitrogen6_max-s.img = start_imx6qp_nitrogen6_max.pblb.simximg +FILE_barebox-boundarydevices-imx6qp-nitrogen6_max-us.img = start_imx6qp_nitrogen6_max.pblb.usimximg +FILE_barebox-boundarydevices-imx6qp-nitrogen6_max-es.img = start_imx6qp_nitrogen6_max.pblb.esimximg +habv4image-$(CONFIG_MACH_NITROGEN6) += barebox-boundarydevices-imx6qp-nitrogen6_max pblb-$(CONFIG_MACH_TX6X) += start_imx6dl_tx6x_512m CFG_start_imx6dl_tx6x_512m.pblb.imximg = $(board)/karo-tx6x/flash-header-tx6dl-512m.imxcfg FILE_barebox-karo-imx6dl-tx6x-512m.img = start_imx6dl_tx6x_512m.pblb.imximg image-$(CONFIG_MACH_TX6X) += barebox-karo-imx6dl-tx6x-512m.img +FILE_barebox-karo-imx6dl-tx6x-512m-s.img = start_imx6dl_tx6x_512m.pblb.simximg +FILE_barebox-karo-imx6dl-tx6x-512m-us.img = start_imx6dl_tx6x_512m.pblb.usimximg +FILE_barebox-karo-imx6dl-tx6x-512m-es.img = start_imx6dl_tx6x_512m.pblb.esimximg +habv4image-$(CONFIG_MACH_TX6X) += barebox-karo-imx6dl-tx6x-512m pblb-$(CONFIG_MACH_TX6X) += start_imx6dl_tx6x_1g CFG_start_imx6dl_tx6x_1g.pblb.imximg = $(board)/karo-tx6x/flash-header-tx6dl-1g.imxcfg FILE_barebox-karo-imx6dl-tx6x-1g.img = start_imx6dl_tx6x_1g.pblb.imximg image-$(CONFIG_MACH_TX6X) += barebox-karo-imx6dl-tx6x-1g.img +FILE_barebox-karo-imx6dl-tx6x-1g-s.img = start_imx6dl_tx6x_1g.pblb.simximg +FILE_barebox-karo-imx6dl-tx6x-1g-us.img = start_imx6dl_tx6x_1g.pblb.usimximg +FILE_barebox-karo-imx6dl-tx6x-1g-es.img = start_imx6dl_tx6x_1g.pblb.esimximg +habv4image-$(CONFIG_MACH_TX6X) += barebox-karo-imx6dl-tx6x-1g pblb-$(CONFIG_MACH_TX6X) += start_imx6q_tx6x_1g CFG_start_imx6q_tx6x_1g.pblb.imximg = $(board)/karo-tx6x/flash-header-tx6q-1g.imxcfg @@ -367,163 +539,291 @@ pblb-$(CONFIG_MACH_TX6X) += start_imx6q_tx6x_2g CFG_start_imx6q_tx6x_2g.pblb.imximg = $(board)/karo-tx6x/flash-header-tx6qp-2g.imxcfg FILE_barebox-karo-imx6qp-tx6x-2g.img = start_imx6q_tx6x_2g.pblb.imximg image-$(CONFIG_MACH_TX6X) += barebox-karo-imx6qp-tx6x-2g.img +FILE_barebox-karo-imx6qp-tx6x-2g-s.img = start_imx6q_tx6x_2g.pblb.simximg +FILE_barebox-karo-imx6qp-tx6x-2g-us.img = start_imx6q_tx6x_2g.pblb.usimximg +FILE_barebox-karo-imx6qp-tx6x-2g-es.img = start_imx6q_tx6x_2g.pblb.esimximg +habv4image-$(CONFIG_MACH_TX6X) += barebox-karo-imx6qp-tx6x-2g pblb-$(CONFIG_MACH_UDOO) += start_imx6_udoo CFG_start_imx6_udoo.pblb.imximg = $(board)/udoo/flash-header-mx6-udoo.imxcfg FILE_barebox-udoo-imx6q.img = start_imx6_udoo.pblb.imximg image-$(CONFIG_MACH_UDOO) += barebox-udoo-imx6q.img +FILE_barebox-udoo-imx6q.simg = start_imx6_udoo.pblb.simximg +FILE_barebox-udoo-imx6q.usimg = start_imx6_udoo.pblb.usimximg +FILE_barebox-udoo-imx6q.esimg = start_imx6_udoo.pblb.esimximg +habv4image-$(CONFIG_MACH_UDOO) += barebox-udoo-imx6q pblb-$(CONFIG_MACH_CM_FX6) += start_imx6_cm_fx6 CFG_start_imx6_cm_fx6.pblb.imximg = $(board)/cm-fx6/flash-header-mx6-cm-fx6.imxcfg FILE_barebox-cm-fx6.img = start_imx6_cm_fx6.pblb.imximg image-$(CONFIG_MACH_CM_FX6) += barebox-cm-fx6.img +FILE_barebox-cm-fx6-s.img = start_imx6_cm_fx6.pblb.simximg +FILE_barebox-cm-fx6-us.img = start_imx6_cm_fx6.pblb.usimximg +FILE_barebox-cm-fx6-es.img = start_imx6_cm_fx6.pblb.esimximg +habv4image-$(CONFIG_MACH_CM_FX6) += barebox-cm-fx6 pblb-$(CONFIG_MACH_CM_FX6) += start_imx6_utilite CFG_start_imx6_utilite.pblb.imximg = $(board)/cm-fx6/flash-header-mx6-cm-fx6.imxcfg FILE_barebox-utilite.img = start_imx6_utilite.pblb.imximg image-$(CONFIG_MACH_CM_FX6) += barebox-utilite.img +FILE_barebox-utilite-s.img = start_imx6_utilite.pblb.simximg +FILE_barebox-utilite-us.img = start_imx6_utilite.pblb.usimximg +FILE_barebox-utilite-es.img = start_imx6_utilite.pblb.esimximg +habv4image-$(CONFIG_MACH_CM_FX6) += barebox-utilite.img pblb-$(CONFIG_MACH_VARISCITE_MX6) += start_variscite_custom CFG_start_variscite_custom.pblb.imximg = $(board)/variscite-mx6/flash-header-variscite.imxcfg FILE_barebox-variscite-custom.img = start_variscite_custom.pblb.imximg image-$(CONFIG_MACH_VARISCITE_MX6) += barebox-variscite-custom.img +FILE_barebox-variscite-custom-s.img = start_variscite_custom.pblb.simximg +FILE_barebox-variscite-custom-us.img = start_variscite_custom.pblb.usimximg +FILE_barebox-variscite-custom-es.img = start_variscite_custom.pblb.esimximg +habv4image-$(CONFIG_MACH_VARISCITE_MX6) += barebox-variscite-custom pblb-$(CONFIG_MACH_EMBEDSKY_E9) += start_imx6q_embedsky_e9 CFG_start_imx6q_embedsky_e9.pblb.imximg = $(board)/embedsky-e9/flash-header-e9.imxcfg FILE_barebox-embedsky-imx6q-e9.img = start_imx6q_embedsky_e9.pblb.imximg image-$(CONFIG_MACH_EMBEDSKY_E9) += barebox-embedsky-imx6q-e9.img +FILE_barebox-embedsky-imx6q-e9-s.img = start_imx6q_embedsky_e9.pblb.simximg +FILE_barebox-embedsky-imx6q-e9-us.img = start_imx6q_embedsky_e9.pblb.usimximg +FILE_barebox-embedsky-imx6q-e9-es.img = start_imx6q_embedsky_e9.pblb.esimximg +habv4image-$(CONFIG_MACH_EMBEDSKY_E9) += barebox-embedsky-imx6q-e9 pblb-$(CONFIG_MACH_EMBEST_RIOTBOARD) += start_imx6s_riotboard CFG_start_imx6s_riotboard.pblb.imximg = $(board)/embest-riotboard/flash-header-embest-riotboard.imxcfg FILE_barebox-embest-imx6s-riotboard.img = start_imx6s_riotboard.pblb.imximg image-$(CONFIG_MACH_EMBEST_RIOTBOARD) += barebox-embest-imx6s-riotboard.img +FILE_barebox-embest-imx6s-riotboard-s.img = start_imx6s_riotboard.pblb.simximg +FILE_barebox-embest-imx6s-riotboard-us.img = start_imx6s_riotboard.pblb.usimximg +FILE_barebox-embest-imx6s-riotboard-es.img = start_imx6s_riotboard.pblb.esimximg +habv4image-$(CONFIG_MACH_EMBEST_RIOTBOARD) += barebox-embest-imx6s-riotboard pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbaa03_1gib CFG_start_phytec_pbaa03_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg FILE_barebox-phytec-pbaa03-1gib.img = start_phytec_pbaa03_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbaa03-1gib.img +FILE_barebox-phytec-pbaa03-1gib-s.img = start_phytec_pbaa03_1gib.pblb.simximg +FILE_barebox-phytec-pbaa03-1gib-us.img = start_phytec_pbaa03_1gib.pblb.usimximg +FILE_barebox-phytec-pbaa03-1gib-es.img = start_phytec_pbaa03_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbaa03-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbaa03_1gib_1bank CFG_start_phytec_pbaa03_1gib_1bank.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg FILE_barebox-phytec-pbaa03-1gib-1bank.img = start_phytec_pbaa03_1gib_1bank.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbaa03-1gib-1bank.img +FILE_barebox-phytec-pbaa03-1gib-1bank-s.img = start_phytec_pbaa03_1gib_1bank.pblb.simximg +FILE_barebox-phytec-pbaa03-1gib-1bank-us.img = start_phytec_pbaa03_1gib_1bank.pblb.usimximg +FILE_barebox-phytec-pbaa03-1gib-1bank-es.img = start_phytec_pbaa03_1gib_1bank.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbaa03-1gib-1bank pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_pbaa03_2gib CFG_start_phytec_pbaa03_2gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg FILE_barebox-phytec-pbaa03-2gib.img = start_phytec_pbaa03_2gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbaa03-2gib.img +FILE_barebox-phytec-pbaa03-2gib-s.img = start_phytec_pbaa03_2gib.pblb.simximg +FILE_barebox-phytec-pbaa03-2gib-us.img = start_phytec_pbaa03_2gib.pblb.usimximg +FILE_barebox-phytec-pbaa03-2gib-es.img = start_phytec_pbaa03_2gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-pbaa03-2gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6q_som_nand_1gib CFG_start_phytec_phycore_imx6q_som_nand_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg FILE_barebox-phytec-phycore-imx6q-som-nand-1gib.img = start_phytec_phycore_imx6q_som_nand_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-nand-1gib.img +FILE_barebox-phytec-phycore-imx6q-som-nand-1gib-s.img = start_phytec_phycore_imx6q_som_nand_1gib.pblb.simximg +FILE_barebox-phytec-phycore-imx6q-som-nand-1gib-us.img = start_phytec_phycore_imx6q_som_nand_1gib.pblb.usimximg +FILE_barebox-phytec-phycore-imx6q-som-nand-1gib-es.img = start_phytec_phycore_imx6q_som_nand_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-nand-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6qp_som_nand_1gib CFG_start_phytec_phycore_imx6qp_som_nand_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058qp-1gib.imxcfg FILE_barebox-phytec-phycore-imx6qp-som-nand-1gib.img = start_phytec_phycore_imx6qp_som_nand_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6qp-som-nand-1gib.img +FILE_barebox-phytec-phycore-imx6qp-som-nand-1gib-s.img = start_phytec_phycore_imx6qp_som_nand_1gib.pblb.simximg +FILE_barebox-phytec-phycore-imx6qp-som-nand-1gib-us.img = start_phytec_phycore_imx6qp_som_nand_1gib.pblb.usimximg +FILE_barebox-phytec-phycore-imx6qp-som-nand-1gib-es.img = start_phytec_phycore_imx6qp_som_nand_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6qp-som-nand-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6q_som_emmc_1gib CFG_start_phytec_phycore_imx6q_som_emmc_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-1gib.img +FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib-s.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblb.simximg +FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib-us.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblb.usimximg +FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib-es.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6q_som_emmc_2gib CFG_start_phytec_phycore_imx6q_som_emmc_2gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg FILE_barebox-phytec-phycore-imx6q-som-emmc-2gib.img = start_phytec_phycore_imx6q_som_emmc_2gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-2gib.img +FILE_barebox-phytec-phycore-imx6q-som-emmc-2gib-s.img = start_phytec_phycore_imx6q_som_emmc_2gib.pblb.simximg +FILE_barebox-phytec-phycore-imx6q-som-emmc-2gib-us.img = start_phytec_phycore_imx6q_som_emmc_2gib.pblb.usimximg +FILE_barebox-phytec-phycore-imx6q-som-emmc-2gib-es.img = start_phytec_phycore_imx6q_som_emmc_2gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-2gib + pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_nand_256mb CFG_start_phytec_phycore_imx6dl_som_nand_256mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg FILE_barebox-phytec-phycore-imx6dl-som-nand-256mb.img = start_phytec_phycore_imx6dl_som_nand_256mb.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-nand-256mb.img +FILE_barebox-phytec-phycore-imx6dl-som-nand-256mb-s.img = start_phytec_phycore_imx6dl_som_nand_256mb.pblb.simximg +FILE_barebox-phytec-phycore-imx6dl-som-nand-256mb-us.img = start_phytec_phycore_imx6dl_som_nand_256mb.pblb.usimximg +FILE_barebox-phytec-phycore-imx6dl-som-nand-256mb-es.img = start_phytec_phycore_imx6dl_som_nand_256mb.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-nand-256mb pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_nand_1gib CFG_start_phytec_phycore_imx6dl_som_nand_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib-32bit.imxcfg FILE_barebox-phytec-phycore-imx6dl-som-nand-1gib.img = start_phytec_phycore_imx6dl_som_nand_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-nand-1gib.img +FILE_barebox-phytec-phycore-imx6dl-som-nand-1gib-s.img = start_phytec_phycore_imx6dl_som_nand_1gib.pblb.simximg +FILE_barebox-phytec-phycore-imx6dl-som-nand-1gib-us.img = start_phytec_phycore_imx6dl_som_nand_1gib.pblb.usimximg +FILE_barebox-phytec-phycore-imx6dl-som-nand-1gib-es.img = start_phytec_phycore_imx6dl_som_nand_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-nand-1gib pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_emmc_1gib CFG_start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg FILE_barebox-phytec-phycore-imx6dl-som-emmc-1gib.img = start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-emmc-1gib.img +FILE_barebox-phytec-phycore-imx6dl-som-emmc-1gib-s.img = start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.simximg +FILE_barebox-phytec-phycore-imx6dl-som-emmc-1gib-us.img = start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.usimximg +FILE_barebox-phytec-phycore-imx6dl-som-emmc-1gib-es.img = start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-emmc-1gib pblb-$(CONFIG_MACH_KONTRON_SAMX6I) += start_imx6q_samx6i CFG_start_imx6q_samx6i.pblb.imximg = $(board)/kontron-samx6i/flash-header-samx6i-quad.imxcfg FILE_barebox-imx6q-samx6i.img = start_imx6q_samx6i.pblb.imximg image-$(CONFIG_MACH_KONTRON_SAMX6I) += barebox-imx6q-samx6i.img +FILE_barebox-imx6q-samx6i-s.img = start_imx6q_samx6i.pblb.simximg +FILE_barebox-imx6q-samx6i-us.img = start_imx6q_samx6i.pblb.usimximg +FILE_barebox-imx6q-samx6i-es.img = start_imx6q_samx6i.pblb.esimximg +habv4image-$(CONFIG_MACH_KONTRON_SAMX6I) += barebox-imx6q-samx6i pblb-$(CONFIG_MACH_KONTRON_SAMX6I) += start_imx6dl_samx6i CFG_start_imx6dl_samx6i.pblb.imximg = $(board)/kontron-samx6i/flash-header-samx6i-duallite.imxcfg FILE_barebox-imx6dl-samx6i.img = start_imx6dl_samx6i.pblb.imximg image-$(CONFIG_MACH_KONTRON_SAMX6I) += barebox-imx6dl-samx6i.img +FILE_barebox-imx6dl-samx6i-s.img = start_imx6dl_samx6i.pblb.simximg +FILE_barebox-imx6dl-samx6i-us.img = start_imx6dl_samx6i.pblb.usimximg +FILE_barebox-imx6dl-samx6i-es.img = start_imx6dl_samx6i.pblb.esimximg +habv4image-$(CONFIG_MACH_KONTRON_SAMX6I) += barebox-imx6dl-samx6i pblb-$(CONFIG_MACH_GW_VENTANA) += start_imx6q_gw54xx_1gx64 CFG_start_imx6q_gw54xx_1gx64.pblb.imximg = $(board)/gateworks-ventana/flash-header-ventana-quad-1gx64.imxcfg FILE_barebox-gateworks-imx6q-ventana-1gx64.img = start_imx6q_gw54xx_1gx64.pblb.imximg image-$(CONFIG_MACH_GW_VENTANA) += barebox-gateworks-imx6q-ventana-1gx64.img +FILE_barebox-gateworks-imx6q-ventana-1gx64-s.img = start_imx6q_gw54xx_1gx64.pblb.simximg +FILE_barebox-gateworks-imx6q-ventana-1gx64-us.img = start_imx6q_gw54xx_1gx64.pblb.usimximg +FILE_barebox-gateworks-imx6q-ventana-1gx64-es.img = start_imx6q_gw54xx_1gx64.pblb.esimximg +habv4image-$(CONFIG_MACH_GW_VENTANA) += barebox-gateworks-imx6q-ventana-1gx64 pblb-$(CONFIG_MACH_ELTEC_HIPERCAM) += start_imx6dl_eltec_hipercam CFG_start_imx6dl_eltec_hipercam.pblb.imximg = $(board)/eltec-hipercam/flash-header-eltec-hipercam.imxcfg FILE_barebox-eltec-hipercam.img = start_imx6dl_eltec_hipercam.pblb.imximg image-$(CONFIG_MACH_ELTEC_HIPERCAM) += barebox-eltec-hipercam.img +FILE_barebox-eltec-hipercam-s.img = start_imx6dl_eltec_hipercam.pblb.simximg +FILE_barebox-eltec-hipercam-us.img = start_imx6dl_eltec_hipercam.pblb.usimximg +FILE_barebox-eltec-hipercam-es.img = start_imx6dl_eltec_hipercam.pblb.esimximg +hbv4image-$(CONFIG_MACH_ELTEC_HIPERCAM) += barebox-eltec-hipercam pblb-$(CONFIG_MACH_ADVANTECH_ROM_742X) += start_advantech_imx6dl_rom_7421 CFG_start_advantech_imx6dl_rom_7421.pblb.imximg = $(board)/advantech-mx6/flash-header-advantech-rom-7421.imxcfg FILE_barebox-advantech-imx6dl-rom-7421.img = start_advantech_imx6dl_rom_7421.pblb.imximg image-$(CONFIG_MACH_ADVANTECH_ROM_742X) += barebox-advantech-imx6dl-rom-7421.img +FILE_barebox-advantech-imx6dl-rom-7421-s.img = start_advantech_imx6dl_rom_7421.pblb.simximg +FILE_barebox-advantech-imx6dl-rom-7421-us.img = start_advantech_imx6dl_rom_7421.pblb.usimximg +FILE_barebox-advantech-imx6dl-rom-7421-es.img = start_advantech_imx6dl_rom_7421.pblb.esimximg +habv4image-$(CONFIG_MACH_ADVANTECH_ROM_742X) += barebox-advantech-imx6dl-rom-7421 pblb-$(CONFIG_MACH_ZII_RDU2) += start_imx6_zii_rdu2 CFG_start_imx6_zii_rdu2.pblb.imximg = $(board)/zii-imx6q-rdu2/flash-header-rdu2.imxcfg FILE_barebox-zii-imx6-rdu2.img = start_imx6_zii_rdu2.pblb.imximg image-$(CONFIG_MACH_ZII_RDU2) += barebox-zii-imx6-rdu2.img +FILE_barebox-zii-imx6-rdu2-s.img = start_imx6_zii_rdu2.pblb.simximg +FILE_barebox-zii-imx6-rdu2-us.img = start_imx6_zii_rdu2.pblb.usimximg +FILE_barebox-zii-imx6-rdu2-es.img = start_imx6_zii_rdu2.pblb.esimximg +habv4image-$(CONFIG_MACH_ZII_RDU2) += barebox-zii-imx6-rdu2 # ----------------------- i.MX6ul / i.MX6ull based boards -------------- pblb-$(CONFIG_MACH_GRINN_LITEBOARD) += start_imx6ul_liteboard_256mb CFG_start_imx6ul_liteboard_256mb.pblb.imximg = $(board)/grinn-liteboard/flash-header-liteboard-256mb.imxcfg FILE_barebox-grinn-liteboard-256mb.img = start_imx6ul_liteboard_256mb.pblb.imximg image-$(CONFIG_MACH_GRINN_LITEBOARD) += barebox-grinn-liteboard-256mb.img +FILE_barebox-grinn-liteboard-256mb-s.img = start_imx6ul_liteboard_256mb.pblb.simximg +FILE_barebox-grinn-liteboard-256mb-us.img = start_imx6ul_liteboard_256mb.pblb.usimximg +FILE_barebox-grinn-liteboard-256mb-es.img = start_imx6ul_liteboard_256mb.pblb.esimximg +habv4image-$(CONFIG_MACH_GRINN_LITEBOARD) += barebox-grinn-liteboard-256mb pblb-$(CONFIG_MACH_GRINN_LITEBOARD) += start_imx6ul_liteboard_512mb CFG_start_imx6ul_liteboard_512mb.pblb.imximg = $(board)/grinn-liteboard/flash-header-liteboard-512mb.imxcfg FILE_barebox-grinn-liteboard-512mb.img = start_imx6ul_liteboard_512mb.pblb.imximg image-$(CONFIG_MACH_GRINN_LITEBOARD) += barebox-grinn-liteboard-512mb.img +FILE_barebox-grinn-liteboard-512mb-s.img = start_imx6ul_liteboard_512mb.pblb.simximg +FILE_barebox-grinn-liteboard-512mb-us.img = start_imx6ul_liteboard_512mb.pblb.usimximg +FILE_barebox-grinn-liteboard-512mb-es.img = start_imx6ul_liteboard_512mb.pblb.esimximg +habv4image-$(CONFIG_MACH_GRINN_LITEBOARD) += barebox-grinn-liteboard-512mb pblb-$(CONFIG_MACH_NXP_IMX6ULL_EVK) += start_nxp_imx6ull_evk CFG_start_nxp_imx6ull_evk.pblb.imximg = $(board)/nxp-imx6ull-evk/flash-header-nxp-imx6ull-evk.imxcfg FILE_barebox-nxp-imx6ull-evk.img = start_nxp_imx6ull_evk.pblb.imximg image-$(CONFIG_MACH_NXP_IMX6ULL_EVK) += barebox-nxp-imx6ull-evk.img +FILE_barebox-nxp-imx6ull-evk-s.img = start_nxp_imx6ull_evk.pblb.simximg +FILE_barebox-nxp-imx6ull-evk-us.img = start_nxp_imx6ull_evk.pblb.usimximg +FILE_barebox-nxp-imx6ull-evk-es.img = start_nxp_imx6ull_evk.pblb.esimximg +habv4image-$(CONFIG_MACH_NXP_IMX6ULL_EVK) += barebox-nxp-imx6ull-evk pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ul_som_512mb CFG_start_phytec_phycore_imx6ul_som_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg FILE_barebox-phytec-phycore-imx6ul-512mb.img = start_phytec_phycore_imx6ul_som_512mb.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ul-512mb.img +FILE_barebox-phytec-phycore-imx6ul-512mb-s.img = start_phytec_phycore_imx6ul_som_512mb.pblb.simximg +FILE_barebox-phytec-phycore-imx6ul-512mb-us.img = start_phytec_phycore_imx6ul_som_512mb.pblb.usimximg +FILE_barebox-phytec-phycore-imx6ul-512mb-es.img = start_phytec_phycore_imx6ul_som_512mb.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ul-512mb pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_lc_256mb CFG_start_phytec_phycore_imx6ull_som_lc_256mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg FILE_barebox-phytec-phycore-imx6ull-lc-256mb.img = start_phytec_phycore_imx6ull_som_lc_256mb.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-lc-256mb.img +FILE_barebox-phytec-phycore-imx6ull-lc-256mb-s.img = start_phytec_phycore_imx6ull_som_lc_256mb.pblb.simximg +FILE_barebox-phytec-phycore-imx6ull-lc-256mb-us.img = start_phytec_phycore_imx6ull_som_lc_256mb.pblb.usimximg +FILE_barebox-phytec-phycore-imx6ull-lc-256mb-es.img = start_phytec_phycore_imx6ull_som_lc_256mb.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-lc-256mb pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_512mb CFG_start_phytec_phycore_imx6ull_som_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg FILE_barebox-phytec-phycore-imx6ull-512mb.img = start_phytec_phycore_imx6ull_som_512mb.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-512mb.img +FILE_barebox-phytec-phycore-imx6ull-512mb-s.img = start_phytec_phycore_imx6ull_som_512mb.pblb.simximg +FILE_barebox-phytec-phycore-imx6ull-512mb-us.img = start_phytec_phycore_imx6ull_som_512mb.pblb.usimximg +FILE_barebox-phytec-phycore-imx6ull-512mb-es.img = start_phytec_phycore_imx6ull_som_512mb.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-512mb pblb-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += start_imx6ul_pico_hobbit_256mb CFG_start_imx6ul_pico_hobbit_256mb.pblb.imximg = $(board)/technexion-pico-hobbit/flash-header-imx6ul-pico-hobbit-256.imxcfg FILE_barebox-imx6ul-pico-hobbit-256mb.img = start_imx6ul_pico_hobbit_256mb.pblb.imximg image-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += barebox-imx6ul-pico-hobbit-256mb.img +FILE_barebox-imx6ul-pico-hobbit-256mb-s.img = start_imx6ul_pico_hobbit_256mb.pblb.simximg +FILE_barebox-imx6ul-pico-hobbit-256mb-us.img = start_imx6ul_pico_hobbit_256mb.pblb.usimximg +FILE_barebox-imx6ul-pico-hobbit-256mb-es.img = start_imx6ul_pico_hobbit_256mb.pblb.esimximg +habv4image-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += barebox-imx6ul-pico-hobbit-256mb pblb-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += start_imx6ul_pico_hobbit_512mb CFG_start_imx6ul_pico_hobbit_512mb.pblb.imximg = $(board)/technexion-pico-hobbit/flash-header-imx6ul-pico-hobbit-512.imxcfg FILE_barebox-imx6ul-pico-hobbit-512mb.img = start_imx6ul_pico_hobbit_512mb.pblb.imximg image-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += barebox-imx6ul-pico-hobbit-512mb.img +FILE_barebox-imx6ul-pico-hobbit-512mb-s.img = start_imx6ul_pico_hobbit_512mb.pblb.simximg +FILE_barebox-imx6ul-pico-hobbit-512mb-us.img = start_imx6ul_pico_hobbit_512mb.pblb.usimximg +FILE_barebox-imx6ul-pico-hobbit-512mb-es.img = start_imx6ul_pico_hobbit_512mb.pblb.esimximg +habv4image-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += barebox-imx6ul-pico-hobbit-512mb pblb-$(CONFIG_MACH_DIGI_CCIMX6ULSBCPRO) += start_imx6ul_ccimx6ulsbcpro CFG_start_imx6ul_ccimx6ulsbcpro.pblb.imximg = $(board)/digi-ccimx6ulsom/flash-header-imx6ul-ccimx6ulsbcpro.imxcfg FILE_barebox-imx6ul-ccimx6ulsbcpro.img = start_imx6ul_ccimx6ulsbcpro.pblb.imximg image-$(CONFIG_MACH_DIGI_CCIMX6ULSBCPRO) += barebox-imx6ul-ccimx6ulsbcpro.img - +FILE_barebox-imx6ul-ccimx6ulsbcpro-s.img = start_imx6ul_ccimx6ulsbcpro.pblb.simximg +FILE_barebox-imx6ul-ccimx6ulsbcpro-us.img = start_imx6ul_ccimx6ulsbcpro.pblb.usimximg +FILE_barebox-imx6ul-ccimx6ulsbcpro-es.img = start_imx6ul_ccimx6ulsbcpro.pblb.esimximg +habv4image-$(CONFIG_MACH_DIGI_CCIMX6ULSBCPRO) += barebox-imx6ul-ccimx6ulsbcpro # ----------------------- vf6xx based boards --------------------------- pblb-$(CONFIG_MACH_VF610_TWR) += start_vf610_twr CFG_start_vf610_twr.pblb.imximg = $(board)/freescale-vf610-twr/flash-header-vf610-twr.imxcfg @@ -540,21 +840,37 @@ pblb-$(CONFIG_MACH_FREESCALE_MX7_SABRESD) += start_imx7d_sabresd CFG_start_imx7d_sabresd.pblb.imximg = $(board)/freescale-mx7-sabresd/flash-header-mx7-sabresd.imxcfg FILE_barebox-freescale-mx7-sabresd.img = start_imx7d_sabresd.pblb.imximg image-$(CONFIG_MACH_FREESCALE_MX7_SABRESD) += barebox-freescale-mx7-sabresd.img +FILE_barebox-freescale-mx7-sabresd-s.img = start_imx7d_sabresd.pblb.simximg +FILE_barebox-freescale-mx7-sabresd-us.img = start_imx7d_sabresd.pblb.usimximg +FILE_barebox-freescale-mx7-sabresd-es.img = start_imx7d_sabresd.pblb.esimximg +habv4image-$(CONFIG_MACH_FREESCALE_MX7_SABRESD) += barebox-freescale-mx7-sabresd pblb-$(CONFIG_MACH_PHYTEC_PHYCORE_IMX7) += start_phytec_phycore_imx7 CFG_start_phytec_phycore_imx7.pblb.imximg = $(board)/phytec-phycore-imx7/flash-header-phytec-phycore-imx7.imxcfg FILE_barebox-phytec-phycore-imx7.img = start_phytec_phycore_imx7.pblb.imximg image-$(CONFIG_MACH_PHYTEC_PHYCORE_IMX7) += barebox-phytec-phycore-imx7.img +FILE_barebox-phytec-phycore-imx7-s.img = start_phytec_phycore_imx7.pblb.simximg +FILE_barebox-phytec-phycore-imx7-us.img = start_phytec_phycore_imx7.pblb.usimximg +FILE_barebox-phytec-phycore-imx7-es.img = start_phytec_phycore_imx7.pblb.esimximg +habv4image-$(CONFIG_MACH_PHYTEC_PHYCORE_IMX7) += barebox-phytec-phycore-imx7 pblb-$(CONFIG_MACH_WARP7) += start_imx7s_element14_warp7 CFG_start_imx7s_element14_warp7.pblb.imximg = $(board)/element14-warp7/flash-header-mx7-warp.imxcfg FILE_barebox-element14-imx7s-warp7.img = start_imx7s_element14_warp7.pblb.imximg image-$(CONFIG_MACH_WARP7) += barebox-element14-imx7s-warp7.img +FILE_barebox-element14-imx7s-warp7-s.img = start_imx7s_element14_warp7.pblb.simximg +FILE_barebox-element14-imx7s-warp7-us.img = start_imx7s_element14_warp7.pblb.usimximg +FILE_barebox-element14-imx7s-warp7-es.img = start_imx7s_element14_warp7.pblb.esimximg +habv4image-$(CONFIG_MACH_WARP7) += barebox-element14-imx7s-warp7 pblb-$(CONFIG_MACH_ZII_IMX7D_RPU2) += start_zii_imx7d_rpu2 CFG_start_zii_imx7d_rpu2.pblb.imximg = $(board)/zii-imx7d-rpu2/flash-header-zii-imx7d-rpu2.imxcfg FILE_barebox-zii-imx7d-rpu2.img = start_zii_imx7d_rpu2.pblb.imximg image-$(CONFIG_MACH_ZII_IMX7D_RPU2) += barebox-zii-imx7d-rpu2.img +FILE_barebox-zii-imx7d-rpu2-s.img = start_zii_imx7d_rpu2.pblb.simximg +FILE_barebox-zii-imx7d-rpu2-us.img = start_zii_imx7d_rpu2.pblb.usimximg +FILE_barebox-zii-imx7d-rpu2-es.img = start_zii_imx7d_rpu2.pblb.esimximg +habv4image-$(CONFIG_MACH_ZII_IMX7D_RPU2) += barebox-zii-imx7d-rpu2 # ----------------------- i.MX8mq based boards -------------------------- pblb-$(CONFIG_MACH_NXP_IMX8MQ_EVK) += start_nxp_imx8mq_evk @@ -574,3 +890,7 @@ CFG_start_phytec_phycore_imx8mq.pblb.imximg = $(board)/phytec-som-imx8mq/flash-h MAX_PBL_MEMORY_SIZE_start_phytec_phycore_imx8mq.pbl = 0x3f000 FILE_barebox-phytec-phycore-imx8mq.img = start_phytec_phycore_imx8mq.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX8MQ) += barebox-phytec-phycore-imx8mq.img + +image-$(CONFIG_HABV4_IMAGE_SIGNED) += $(shell for i in $(habv4image-y); do echo $$i-s.img; done) +image-$(CONFIG_HABV4_IMAGE_SIGNED_USB) += $(shell for i in $(habv4image-y); do echo $$i-us.img; done) +image-$(CONFIG_HABV4_IMAGE_SIGNED_ENCRYPTED) += $(shell for i in $(habv4image-y); do echo $$i-es.img; done) -- 2.7.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 2019-07-18 8:02 ` [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 Maik Otto @ 2019-08-05 11:02 ` Sascha Hauer 2019-08-05 12:35 ` Roland Hieber 0 siblings, 1 reply; 9+ messages in thread From: Sascha Hauer @ 2019-08-05 11:02 UTC (permalink / raw) To: Maik Otto; +Cc: barebox Hi Maik, On Thu, Jul 18, 2019 at 10:02:01AM +0200, Maik Otto wrote: > add in the images/Makefile.imx the support of building for signed, usb > signed and encrypted/signed images for NXP i.MX HABV4 > support for NXP i.mx6, i.mx7 and i.mx8 > > Signed-off-by: Maik Otto <m.otto@phytec.de> > --- > Changes in v3: > - nothing > Changes in v2: > - was Patch 2/4 in v1 > - no dynamic variable, parallel building of different image types now > --- > images/Makefile.imx | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 321 insertions(+), 1 deletion(-) > > diff --git a/images/Makefile.imx b/images/Makefile.imx > index 9a7187a..9c70703 100644 > --- a/images/Makefile.imx > +++ b/images/Makefile.imx > @@ -147,216 +147,388 @@ pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 > CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg > FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg > image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img > +FILE_barebox-datamodul-edm-qmx6-s.img = start_imx6_realq7.pblb.simximg > +FILE_barebox-datamodul-edm-qmx6-us.img = start_imx6_realq7.pblb.usimximg > +FILE_barebox-datamodul-edm-qmx6-es.img = start_imx6_realq7.pblb.esimximg > +habv4image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6 This file contains way to much boilerplate already for my taste. Adding four more lines for every board is not something I like to do. Can we add even more magic to get rid of these additional lines? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 2019-08-05 11:02 ` Sascha Hauer @ 2019-08-05 12:35 ` Roland Hieber 2019-08-05 15:07 ` Roland Hieber 0 siblings, 1 reply; 9+ messages in thread From: Roland Hieber @ 2019-08-05 12:35 UTC (permalink / raw) To: Sascha Hauer; +Cc: Maik Otto, barebox On Mon, Aug 05, 2019 at 01:02:13PM +0200, Sascha Hauer wrote: > Hi Maik, > > On Thu, Jul 18, 2019 at 10:02:01AM +0200, Maik Otto wrote: > > add in the images/Makefile.imx the support of building for signed, usb > > signed and encrypted/signed images for NXP i.MX HABV4 > > support for NXP i.mx6, i.mx7 and i.mx8 > > > > Signed-off-by: Maik Otto <m.otto@phytec.de> > > --- > > Changes in v3: > > - nothing > > Changes in v2: > > - was Patch 2/4 in v1 > > - no dynamic variable, parallel building of different image types now > > --- > > images/Makefile.imx | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++- > > 1 file changed, 321 insertions(+), 1 deletion(-) > > > > diff --git a/images/Makefile.imx b/images/Makefile.imx > > index 9a7187a..9c70703 100644 > > --- a/images/Makefile.imx > > +++ b/images/Makefile.imx > > @@ -147,216 +147,388 @@ pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 > > CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg > > FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg > > image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img > > +FILE_barebox-datamodul-edm-qmx6-s.img = start_imx6_realq7.pblb.simximg > > +FILE_barebox-datamodul-edm-qmx6-us.img = start_imx6_realq7.pblb.usimximg > > +FILE_barebox-datamodul-edm-qmx6-es.img = start_imx6_realq7.pblb.esimximg > > +habv4image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6 > > This file contains way to much boilerplate already for my taste. Adding four > more lines for every board is not something I like to do. > > Can we add even more magic to get rid of these additional lines? You mean like... (untested) ----------------- 8< ----------------- # params: CONFIG symbol, entry point, board identifier string define build_imx_img = pblb-$($(1)) += $(2) CFG_$(2).pblb.imximg = $(board)/$(3)/flash-header.imxcfg FILE_barebox-$(3).img = $(2).pblb.imximg FILE_barebox-$(3)-s.img = $(2).pblb.simximg FILE_barebox-$(3)-us.img = $(2).pblb.usimximg FILE_barebox-$(3)-es.img = $(2).pblb.esimximg image-$($(1)) += barebox-$(3).img habv4image-$($(1)) += barebox-$(3) endef # [...] $(call build_imx_img, CONFIG_MACH_REALQ7, start_imx6_realq, datamodul-edm-qmx6) $(call build_imx_img, CONFIG_MACH_GUF_SANTARO, start_imx6q_guf_santaro, guf-santaro) $(call build_imx_img, CONFIG_MACH_GK802, start_imx6_gk802, gk802) $(call build_imx_img, CONFIG_MACH_TQMA6X, start_imx6dl_mba6x, tqma6x) # [...] ----------------- >8 ----------------- We could also go further and only use the "board identifier" to determine the CONFIG_MACH_* symbol and the name of the entry point, but this would probably mean refactoring a lot of board code to conform to the new scheme. Also I'm not sure whether we can just build *-us.img and habv4image-$(CONFIG_*) unconditionally for every board. This looks like another documentation patch opportunity... :-) But the result seems much more readable to me. - Roland -- Roland Hieber | r.hieber@pengutronix.de | Pengutronix e.K. | https://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 2019-08-05 12:35 ` Roland Hieber @ 2019-08-05 15:07 ` Roland Hieber 2019-08-15 14:14 ` Maik Otto 0 siblings, 1 reply; 9+ messages in thread From: Roland Hieber @ 2019-08-05 15:07 UTC (permalink / raw) To: Sascha Hauer; +Cc: Maik Otto, barebox On Mon, Aug 05, 2019 at 02:35:40PM +0200, Roland Hieber wrote: > On Mon, Aug 05, 2019 at 01:02:13PM +0200, Sascha Hauer wrote: > > Hi Maik, > > > > On Thu, Jul 18, 2019 at 10:02:01AM +0200, Maik Otto wrote: > > > add in the images/Makefile.imx the support of building for signed, usb > > > signed and encrypted/signed images for NXP i.MX HABV4 > > > support for NXP i.mx6, i.mx7 and i.mx8 > > > > > > Signed-off-by: Maik Otto <m.otto@phytec.de> > > > --- > > > Changes in v3: > > > - nothing > > > Changes in v2: > > > - was Patch 2/4 in v1 > > > - no dynamic variable, parallel building of different image types now > > > --- > > > images/Makefile.imx | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++- > > > 1 file changed, 321 insertions(+), 1 deletion(-) > > > > > > diff --git a/images/Makefile.imx b/images/Makefile.imx > > > index 9a7187a..9c70703 100644 > > > --- a/images/Makefile.imx > > > +++ b/images/Makefile.imx > > > @@ -147,216 +147,388 @@ pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 > > > CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg > > > FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg > > > image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img > > > +FILE_barebox-datamodul-edm-qmx6-s.img = start_imx6_realq7.pblb.simximg > > > +FILE_barebox-datamodul-edm-qmx6-us.img = start_imx6_realq7.pblb.usimximg > > > +FILE_barebox-datamodul-edm-qmx6-es.img = start_imx6_realq7.pblb.esimximg > > > +habv4image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6 > > > > This file contains way to much boilerplate already for my taste. Adding four > > more lines for every board is not something I like to do. > > > > Can we add even more magic to get rid of these additional lines? > > You mean like... (untested) [...] Here's a tested prototype (needed some more eval and strip): ----------------- 8< ----------------- diff --git a/images/Makefile.imx b/images/Makefile.imx index 9a7187ac7807..f58c0411871d 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -2,6 +2,19 @@ # barebox image generation Makefile for i.MX images # +# params: CONFIG symbol, entry point, board identifier string +define build_imx_img = +$(eval +pblb-$($(strip $(1))) += $(strip $(2)) +CFG_$(strip $(2)).pblb.imximg = $(board)/$(strip $(3))/flash-header.imxcfg +FILE_barebox-$(strip $(3)).img = $(strip $(2)).pblb.imximg +FILE_barebox-$(strip $(3))-s.img = $(strip $(2)).pblb.simximg +FILE_barebox-$(strip $(3))-us.img = $(strip $(2)).pblb.usimximg +FILE_barebox-$(strip $(3))-es.img = $(strip $(2)).pblb.esimximg +image-$($(strip $(1))) += barebox-$(strip $(3)).img +) +endef + # %.imximg - convert into i.MX image # ---------------------------------------------------------------- @@ -143,15 +156,8 @@ FILE_barebox-tx53-1011.img = start_imx53_tx53_1011.pblb.imximg image-$(CONFIG_MACH_TX53) += barebox-tx53-1011.img # ----------------------- i.MX6 based boards --------------------------- -pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 -CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg -FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg -image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img - -pblb-$(CONFIG_MACH_GUF_SANTARO) += start_imx6q_guf_santaro -CFG_start_imx6q_guf_santaro.pblb.imximg = $(board)/guf-santaro/flash-header.imxcfg -FILE_barebox-guf-santaro.img = start_imx6q_guf_santaro.pblb.imximg -image-$(CONFIG_MACH_GUF_SANTARO) += barebox-guf-santaro.img +$(call build_imx_img, CONFIG_MACH_REALQ7, start_imx6_realq, datamodul-edm-qmx6) +$(call build_imx_img, CONFIG_MACH_GUF_SANTARO, start_imx6q_guf_santaro, guf-santaro) pblb-$(CONFIG_MACH_GK802) += start_imx6_gk802 CFG_start_imx6_gk802.pblb.imximg = $(board)/gk802/flash-header.imxcfg ----------------- 8< ----------------- Depending on your thoughts regarding the other questions in my previous mail, I can make this into a proper patch. - Roland -- Roland Hieber | r.hieber@pengutronix.de | Pengutronix e.K. | https://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 2019-08-05 15:07 ` Roland Hieber @ 2019-08-15 14:14 ` Maik Otto 2019-08-19 8:28 ` Roland Hieber 0 siblings, 1 reply; 9+ messages in thread From: Maik Otto @ 2019-08-15 14:14 UTC (permalink / raw) To: Roland Hieber, Sascha Hauer; +Cc: barebox Hi Sascha and Roland, thank you for your response. I have create an example for the patch on basic of Rolands prototype If the code is ok for you, then i will rework the patch and send the patch to the mailinglist. diff --git a/images/Makefile.imx b/images/Makefile.imx index 42c194b..6ca4db9 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -2,6 +2,24 @@ # barebox image generation Makefile for i.MX images # +# params: CONFIG symbol, entry point, flash header path string, board identifier string +define build_imx_habv4img = +$(eval +ifeq ($($(strip $(1))), y) + pblb-y += $(strip $(2)) + CFG_$(strip $(2)).pblb.imximg = $(board)/$(strip $(3)).imxcfg + FILE_barebox-$(strip $(4)).img = $(strip $(2)).pblb.imximg + FILE_barebox-$(strip $(4))-s.img = $(strip $(2)).pblb.simximg + FILE_barebox-$(strip $(4))-us.img = $(strip $(2)).pblb.usimximg + FILE_barebox-$(strip $(4))-es.img = $(strip $(2)).pblb.esimximg + image-y += barebox-$(strip $(4)).img + image-$(CONFIG_HABV4_IMAGE_SIGNED) += barebox-$(strip $(4))-s.img + image-$(CONFIG_HABV4_IMAGE_SIGNED_USB) += barebox-$(strip $(4))-us.img + image-$(CONFIG_HABV4_IMAGE_SIGNED_ENCRYPTED) += barebox-$(strip $(4))-es.img +endif +) +endef + # %.imximg - convert into i.MX image # ---------------------------------------------------------------- @@ -143,10 +161,7 @@ FILE_barebox-tx53-1011.img = start_imx53_tx53_1011.pblb.imximg image-$(CONFIG_MACH_TX53) += barebox-tx53-1011.img # ----------------------- i.MX6 based boards --------------------------- -pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 -CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg -FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg -image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img +$(call build_imx_habv4img, CONFIG_MACH_REALQ7, start_imx6_realq, datamodul-edm-qmx6/flash-header.imxcfg, datamodul-edm-qmx6) pblb-$(CONFIG_MACH_GUF_SANTARO) += start_imx6q_guf_santaro CFG_start_imx6q_guf_santaro.pblb.imximg = $(board)/guf-santaro/flash-header.imxcfg @@ -423,10 +438,7 @@ CFG_start_phytec_phycore_imx6qp_som_nand_1gib.pblb.imximg = $(board)/phytec- som- FILE_barebox-phytec-phycore-imx6qp-som-nand-1gib.img = start_phytec_phycore_imx6qp_som_nand_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6qp-som-nand-1gib.img -pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6q_som_emmc_1gib -CFG_start_phytec_phycore_imx6q_som_emmc_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg -FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblb.imximg -image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-1gib.img +$(call build_imx_habv4img, CONFIG_MACH_PHYTEC_SOM_IMX6, start_phytec_phycore_imx6q_som_emmc_1gib, phytec-som-imx6/flash-header-phytec-pcm058-1gib, phytec-phycore-imx6q-som-emmc-1gib) pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6q_som_emmc_2gib CFG_start_phytec_phycore_imx6q_som_emmc_2gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg Best regards Maik Am 05.08.2019 um 17:07 schrieb Roland Hieber: > On Mon, Aug 05, 2019 at 02:35:40PM +0200, Roland Hieber wrote: >> On Mon, Aug 05, 2019 at 01:02:13PM +0200, Sascha Hauer wrote: >>> Hi Maik, >>> >>> On Thu, Jul 18, 2019 at 10:02:01AM +0200, Maik Otto wrote: >>>> add in the images/Makefile.imx the support of building for signed, usb >>>> signed and encrypted/signed images for NXP i.MX HABV4 >>>> support for NXP i.mx6, i.mx7 and i.mx8 >>>> >>>> Signed-off-by: Maik Otto <m.otto@phytec.de> >>>> --- >>>> Changes in v3: >>>> - nothing >>>> Changes in v2: >>>> - was Patch 2/4 in v1 >>>> - no dynamic variable, parallel building of different image types now >>>> --- >>>> images/Makefile.imx | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++- >>>> 1 file changed, 321 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/images/Makefile.imx b/images/Makefile.imx >>>> index 9a7187a..9c70703 100644 >>>> --- a/images/Makefile.imx >>>> +++ b/images/Makefile.imx >>>> @@ -147,216 +147,388 @@ pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 >>>> CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg >>>> FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg >>>> image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img >>>> +FILE_barebox-datamodul-edm-qmx6-s.img = start_imx6_realq7.pblb.simximg >>>> +FILE_barebox-datamodul-edm-qmx6-us.img = start_imx6_realq7.pblb.usimximg >>>> +FILE_barebox-datamodul-edm-qmx6-es.img = start_imx6_realq7.pblb.esimximg >>>> +habv4image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6 >>> This file contains way to much boilerplate already for my taste. Adding four >>> more lines for every board is not something I like to do. >>> >>> Can we add even more magic to get rid of these additional lines? >> You mean like... (untested) > [...] > > Here's a tested prototype (needed some more eval and strip): > > ----------------- 8< ----------------- > diff --git a/images/Makefile.imx b/images/Makefile.imx > index 9a7187ac7807..f58c0411871d 100644 > --- a/images/Makefile.imx > +++ b/images/Makefile.imx > @@ -2,6 +2,19 @@ > # barebox image generation Makefile for i.MX images > # > > +# params: CONFIG symbol, entry point, board identifier string > +define build_imx_img = > +$(eval > +pblb-$($(strip $(1))) += $(strip $(2)) > +CFG_$(strip $(2)).pblb.imximg = $(board)/$(strip $(3))/flash-header.imxcfg > +FILE_barebox-$(strip $(3)).img = $(strip $(2)).pblb.imximg > +FILE_barebox-$(strip $(3))-s.img = $(strip $(2)).pblb.simximg > +FILE_barebox-$(strip $(3))-us.img = $(strip $(2)).pblb.usimximg > +FILE_barebox-$(strip $(3))-es.img = $(strip $(2)).pblb.esimximg > +image-$($(strip $(1))) += barebox-$(strip $(3)).img > +) > +endef > + > # %.imximg - convert into i.MX image > # ---------------------------------------------------------------- > > @@ -143,15 +156,8 @@ FILE_barebox-tx53-1011.img = start_imx53_tx53_1011.pblb.imximg > image-$(CONFIG_MACH_TX53) += barebox-tx53-1011.img > > # ----------------------- i.MX6 based boards --------------------------- > -pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 > -CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg > -FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg > -image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img > - > -pblb-$(CONFIG_MACH_GUF_SANTARO) += start_imx6q_guf_santaro > -CFG_start_imx6q_guf_santaro.pblb.imximg = $(board)/guf-santaro/flash-header.imxcfg > -FILE_barebox-guf-santaro.img = start_imx6q_guf_santaro.pblb.imximg > -image-$(CONFIG_MACH_GUF_SANTARO) += barebox-guf-santaro.img > +$(call build_imx_img, CONFIG_MACH_REALQ7, start_imx6_realq, datamodul-edm-qmx6) > +$(call build_imx_img, CONFIG_MACH_GUF_SANTARO, start_imx6q_guf_santaro, guf-santaro) > > pblb-$(CONFIG_MACH_GK802) += start_imx6_gk802 > CFG_start_imx6_gk802.pblb.imximg = $(board)/gk802/flash-header.imxcfg > ----------------- 8< ----------------- > > Depending on your thoughts regarding the other questions in my previous > mail, I can make this into a proper patch. > > - Roland > _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 2019-08-15 14:14 ` Maik Otto @ 2019-08-19 8:28 ` Roland Hieber 0 siblings, 0 replies; 9+ messages in thread From: Roland Hieber @ 2019-08-19 8:28 UTC (permalink / raw) To: Maik Otto; +Cc: barebox Hi Maik, Unfortunately your mailer corrupted the patch you sent, see the section "MUA-SPECIFIC HINTS" in the git-format-patch(1) manpage for tips how to prevent that (or send the patch with git-send-email, or as attachment). As far as I can interpret your patch, the approach looks okay to me. I would first introduce the new make macro in a single patch, and then add the board support in a separate patch, so backporting and testing gets easier (in case that was not already what you planned to do anyway :)) I've not yet found the time to clean-up my prototype converting the rest of the Makefile.imx to macro calls, so if you want, you can pick up that patch too. - Roland On Thu, Aug 15, 2019 at 04:14:10PM +0200, Maik Otto wrote: > thank you for your response. > I have create an example for the patch on basic of Rolands prototype > If the code is ok for you, then i will rework the patch and send the > patch to the mailinglist. > > diff --git a/images/Makefile.imx > b/images/Makefile.imx > index 42c194b..6ca4db9 > 100644 > --- > a/images/Makefile.imx > > +++ > b/images/Makefile.imx > > @@ -2,6 +2,24 > @@ > # barebox image generation Makefile for i.MX > images > # > +# params: CONFIG symbol, entry point, flash header path string, board > identifier string > +define build_imx_habv4img > = > +$(eval > > +ifeq ($($(strip $(1))), > y) > + pblb-y += $(strip > $(2)) > + CFG_$(strip $(2)).pblb.imximg = $(board)/$(strip > $(3)).imxcfg > + FILE_barebox-$(strip $(4)).img = $(strip > $(2)).pblb.imximg > + FILE_barebox-$(strip $(4))-s.img = $(strip > $(2)).pblb.simximg > + FILE_barebox-$(strip $(4))-us.img = $(strip > $(2)).pblb.usimximg > + FILE_barebox-$(strip $(4))-es.img = $(strip > $(2)).pblb.esimximg > + image-y += barebox-$(strip > $(4)).img > + image-$(CONFIG_HABV4_IMAGE_SIGNED) += barebox-$(strip > $(4))-s.img > + image-$(CONFIG_HABV4_IMAGE_SIGNED_USB) += barebox-$(strip > $(4))-us.img > + image-$(CONFIG_HABV4_IMAGE_SIGNED_ENCRYPTED) += barebox-$(strip > $(4))-es.img > +endif > > +) > > +endef > > + > > # %.imximg - convert into i.MX > image > # > ---------------------------------------------------------------- > > > @@ -143,10 +161,7 @@ FILE_barebox-tx53-1011.img = > start_imx53_tx53_1011.pblb.imximg > image-$(CONFIG_MACH_TX53) += > barebox-tx53-1011.img > > # ----------------------- i.MX6 based boards > --------------------------- > -pblb-$(CONFIG_MACH_REALQ7) += > start_imx6_realq7 > -CFG_start_imx6_realq7.pblb.imximg = > $(board)/datamodul-edm-qmx6/flash-header.imxcfg > -FILE_barebox-datamodul-edm-qmx6.img = > start_imx6_realq7.pblb.imximg > -image-$(CONFIG_MACH_REALQ7) += > barebox-datamodul-edm-qmx6.img > +$(call build_imx_habv4img, CONFIG_MACH_REALQ7, start_imx6_realq, > datamodul-edm-qmx6/flash-header.imxcfg, datamodul-edm-qmx6) > > pblb-$(CONFIG_MACH_GUF_SANTARO) += > start_imx6q_guf_santaro > CFG_start_imx6q_guf_santaro.pblb.imximg = > $(board)/guf-santaro/flash-header.imxcfg > @@ -423,10 +438,7 @@ > CFG_start_phytec_phycore_imx6qp_som_nand_1gib.pblb.imximg = > $(board)/phytec- som- > FILE_barebox-phytec-phycore-imx6qp-som-nand-1gib.img = > start_phytec_phycore_imx6qp_som_nand_1gib.pblb.imximg > image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += > barebox-phytec-phycore-imx6qp-som-nand-1gib.img > > > -pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += > start_phytec_phycore_imx6q_som_emmc_1gib > -CFG_start_phytec_phycore_imx6q_som_emmc_1gib.pblb.imximg = > $(board)/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg > -FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib.img = > start_phytec_phycore_imx6q_som_emmc_1gib.pblb.imximg > -image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += > barebox-phytec-phycore-imx6q-som-emmc-1gib.img > +$(call build_imx_habv4img, CONFIG_MACH_PHYTEC_SOM_IMX6, > start_phytec_phycore_imx6q_som_emmc_1gib, > phytec-som-imx6/flash-header-phytec-pcm058-1gib, > phytec-phycore-imx6q-som-emmc-1gib) > > pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += > start_phytec_phycore_imx6q_som_emmc_2gib > CFG_start_phytec_phycore_imx6q_som_emmc_2gib.pblb.imximg = > $(board)/phytec-som-imx6/flash-header-phytec-pcm058-2gib.imxcfg > > Best regards > > Maik > > Am 05.08.2019 um 17:07 schrieb Roland Hieber: > > On Mon, Aug 05, 2019 at 02:35:40PM +0200, Roland Hieber wrote: > >> On Mon, Aug 05, 2019 at 01:02:13PM +0200, Sascha Hauer wrote: > >>> Hi Maik, > >>> > >>> On Thu, Jul 18, 2019 at 10:02:01AM +0200, Maik Otto wrote: > >>>> add in the images/Makefile.imx the support of building for signed, usb > >>>> signed and encrypted/signed images for NXP i.MX HABV4 > >>>> support for NXP i.mx6, i.mx7 and i.mx8 > >>>> > >>>> Signed-off-by: Maik Otto <m.otto@phytec.de> > >>>> --- > >>>> Changes in v3: > >>>> - nothing > >>>> Changes in v2: > >>>> - was Patch 2/4 in v1 > >>>> - no dynamic variable, parallel building of different image types now > >>>> --- > >>>> images/Makefile.imx | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++- > >>>> 1 file changed, 321 insertions(+), 1 deletion(-) > >>>> > >>>> diff --git a/images/Makefile.imx b/images/Makefile.imx > >>>> index 9a7187a..9c70703 100644 > >>>> --- a/images/Makefile.imx > >>>> +++ b/images/Makefile.imx > >>>> @@ -147,216 +147,388 @@ pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 > >>>> CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg > >>>> FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg > >>>> image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img > >>>> +FILE_barebox-datamodul-edm-qmx6-s.img = start_imx6_realq7.pblb.simximg > >>>> +FILE_barebox-datamodul-edm-qmx6-us.img = start_imx6_realq7.pblb.usimximg > >>>> +FILE_barebox-datamodul-edm-qmx6-es.img = start_imx6_realq7.pblb.esimximg > >>>> +habv4image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6 > >>> This file contains way to much boilerplate already for my taste. Adding four > >>> more lines for every board is not something I like to do. > >>> > >>> Can we add even more magic to get rid of these additional lines? > >> You mean like... (untested) > > [...] > > > > Here's a tested prototype (needed some more eval and strip): > > > > ----------------- 8< ----------------- > > diff --git a/images/Makefile.imx b/images/Makefile.imx > > index 9a7187ac7807..f58c0411871d 100644 > > --- a/images/Makefile.imx > > +++ b/images/Makefile.imx > > @@ -2,6 +2,19 @@ > > # barebox image generation Makefile for i.MX images > > # > > > > +# params: CONFIG symbol, entry point, board identifier string > > +define build_imx_img = > > +$(eval > > +pblb-$($(strip $(1))) += $(strip $(2)) > > +CFG_$(strip $(2)).pblb.imximg = $(board)/$(strip $(3))/flash-header.imxcfg > > +FILE_barebox-$(strip $(3)).img = $(strip $(2)).pblb.imximg > > +FILE_barebox-$(strip $(3))-s.img = $(strip $(2)).pblb.simximg > > +FILE_barebox-$(strip $(3))-us.img = $(strip $(2)).pblb.usimximg > > +FILE_barebox-$(strip $(3))-es.img = $(strip $(2)).pblb.esimximg > > +image-$($(strip $(1))) += barebox-$(strip $(3)).img > > +) > > +endef > > + > > # %.imximg - convert into i.MX image > > # ---------------------------------------------------------------- > > > > @@ -143,15 +156,8 @@ FILE_barebox-tx53-1011.img = start_imx53_tx53_1011.pblb.imximg > > image-$(CONFIG_MACH_TX53) += barebox-tx53-1011.img > > > > # ----------------------- i.MX6 based boards --------------------------- > > -pblb-$(CONFIG_MACH_REALQ7) += start_imx6_realq7 > > -CFG_start_imx6_realq7.pblb.imximg = $(board)/datamodul-edm-qmx6/flash-header.imxcfg > > -FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblb.imximg > > -image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img > > - > > -pblb-$(CONFIG_MACH_GUF_SANTARO) += start_imx6q_guf_santaro > > -CFG_start_imx6q_guf_santaro.pblb.imximg = $(board)/guf-santaro/flash-header.imxcfg > > -FILE_barebox-guf-santaro.img = start_imx6q_guf_santaro.pblb.imximg > > -image-$(CONFIG_MACH_GUF_SANTARO) += barebox-guf-santaro.img > > +$(call build_imx_img, CONFIG_MACH_REALQ7, start_imx6_realq, datamodul-edm-qmx6) > > +$(call build_imx_img, CONFIG_MACH_GUF_SANTARO, start_imx6q_guf_santaro, guf-santaro) > > > > pblb-$(CONFIG_MACH_GK802) += start_imx6_gk802 > > CFG_start_imx6_gk802.pblb.imximg = $(board)/gk802/flash-header.imxcfg > > ----------------- 8< ----------------- > > > > Depending on your thoughts regarding the other questions in my previous > > mail, I can make this into a proper patch. > > > > - Roland > > -- Roland Hieber | r.hieber@pengutronix.de | Pengutronix e.K. | https://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-08-19 8:28 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-07-18 8:01 [PATCH v3 1/4] i.mx6: signed boot: add habv4-imx6-gencsf.h to the flash header of the PHYTEC boards Maik Otto 2019-07-18 8:01 ` [PATCH v3 2/4] imx6: added fit image signature to the devicetree for " Maik Otto 2019-07-18 8:02 ` [PATCH v3 3/4] Kconfig: add selection for creation of signed/encrypted HABV4 images Maik Otto 2019-07-18 8:02 ` [PATCH v3 4/4] Makefile: add creation of signed/encrypted images for imx6, imx7, imx8 Maik Otto 2019-08-05 11:02 ` Sascha Hauer 2019-08-05 12:35 ` Roland Hieber 2019-08-05 15:07 ` Roland Hieber 2019-08-15 14:14 ` Maik Otto 2019-08-19 8:28 ` Roland Hieber
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox