diff options
-rw-r--r-- | arch/arm/mach-mxs/mxs23img.cfg | 6 | ||||
-rw-r--r-- | arch/arm/mach-mxs/mxs28img.cfg | 8 | ||||
-rw-r--r-- | images/.gitignore | 2 | ||||
-rw-r--r-- | images/Makefile | 3 | ||||
-rw-r--r-- | images/Makefile.mxs | 23 |
5 files changed, 41 insertions, 1 deletions
diff --git a/arch/arm/mach-mxs/mxs23img.cfg b/arch/arm/mach-mxs/mxs23img.cfg new file mode 100644 index 0000000000..34e88483f0 --- /dev/null +++ b/arch/arm/mach-mxs/mxs23img.cfg @@ -0,0 +1,6 @@ +SECTION 0x0 BOOTABLE + TAG LAST + LOAD 0x1000 @PREP@ + CALL 0x1000 0x0 + LOAD 0x40002000 @BOOTLOADER@ + CALL 0x40002000 0x0 diff --git a/arch/arm/mach-mxs/mxs28img.cfg b/arch/arm/mach-mxs/mxs28img.cfg new file mode 100644 index 0000000000..0ff2c35dd5 --- /dev/null +++ b/arch/arm/mach-mxs/mxs28img.cfg @@ -0,0 +1,8 @@ +SECTION 0x0 BOOTABLE + TAG LAST + LOAD 0x1000 @PREP@ + LOAD IVT 0x8000 0x1000 + CALL HAB 0x8000 0x0 + LOAD 0x40002000 @BOOTLOADER@ + LOAD IVT 0x8000 0x40002000 + CALL HAB 0x8000 0x0 diff --git a/images/.gitignore b/images/.gitignore index d27e71a0c8..c5377d9f65 100644 --- a/images/.gitignore +++ b/images/.gitignore @@ -16,6 +16,8 @@ *.t124img.cfg *.mlo *.mlospi +*.mxsbs +*.mxssd pbl.lds barebox.x barebox.z diff --git a/images/Makefile b/images/Makefile index c55cbdc1fb..7c3aaf7627 100644 --- a/images/Makefile +++ b/images/Makefile @@ -103,6 +103,7 @@ include $(srctree)/images/Makefile.mvebu include $(srctree)/images/Makefile.rockchip include $(srctree)/images/Makefile.socfpga include $(srctree)/images/Makefile.tegra +include $(srctree)/images/Makefile.mxs targets += $(image-y) pbl.lds barebox.x barebox.z targets += $(patsubst %,%.pblx,$(pblx-y)) @@ -119,5 +120,5 @@ images: $(addprefix $(obj)/, $(image-y)) FORCE clean-files := *.pbl *.pblb *.pblx *.map start_*.imximg *.img barebox.z start_*.kwbimg \ start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \ - *.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo + *.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo *.mxsbs *.mxssd clean-files += pbl.lds diff --git a/images/Makefile.mxs b/images/Makefile.mxs new file mode 100644 index 0000000000..11229a6456 --- /dev/null +++ b/images/Makefile.mxs @@ -0,0 +1,23 @@ +# +# barebox image generation Makefile for MXS images +# + +# %.mxsbs - convert into MXS BootStream image +# ---------------------------------------------------------------- +quiet_cmd_mxs_bootstream = MXS-BOOTSTREAM $@ + cmd_mxs_bootstream = $(objtree)/scripts/mxsimage -c $(CFG_$(@F)) -b $< -o $@ -p $(word 2,$^) + +$(obj)/%.mxsbs: $(obj)/%.pblx $(obj)/prep_%.pblb FORCE + $(call if_changed,mxs_bootstream) + +# %.mxssd - convert into MXS SD card image +# ---------------------------------------------------------------- +quiet_cmd_mxs_sd = MXS-SD $@ + cmd_mxs_sd = $(objtree)/scripts/mxsboot sd $< $@ + +$(obj)/%.mxssd: $(obj)/% + $(call if_changed,mxs_sd) + +board = $(srctree)/arch/$(ARCH)/boards +mxs23cfg = $(srctree)/arch/arm/mach-mxs/mxs23img.cfg +mxs28cfg = $(srctree)/arch/arm/mach-mxs/mxs28img.cfg |