All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm-extra][PATCH 1/4] u-boot-compulab: update the build recipe.
@ 2015-09-30 15:13 Valentin Raevsky
  2015-09-30 15:13 ` [meta-fsl-arm-extra][PATCH 2/4] firmware-compulab: add firmware configuration for cm-fx6 machines Valentin Raevsky
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Valentin Raevsky @ 2015-09-30 15:13 UTC (permalink / raw)
  To: meta-freescale, otavio

1) Add the cm-fx6-firmware build and deploy methods.
2) Update the u-boot SRC_URI.

Signed-off-by: Valentin Raevsky <valentin@compulab.co.il>
---
 .../u-boot-compulab-2014.10/cm-fx6-firmware.patch  | 14 ++++++++++++++
 recipes-bsp/u-boot/u-boot-compulab_2014.10.bb      | 22 +++++++++++++++++-----
 2 files changed, 31 insertions(+), 5 deletions(-)
 create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2014.10/cm-fx6-firmware.patch

diff --git a/recipes-bsp/u-boot/u-boot-compulab-2014.10/cm-fx6-firmware.patch b/recipes-bsp/u-boot/u-boot-compulab-2014.10/cm-fx6-firmware.patch
new file mode 100644
index 0000000..37e40b0
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-compulab-2014.10/cm-fx6-firmware.patch
@@ -0,0 +1,14 @@
+diff --git a/Makefile b/Makefile
+index 6808eab..db6d93d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1449,3 +1449,9 @@ FORCE:
+ # Declare the contents of the .PHONY variable as phony.  We keep that
+ # information in a variable so we can use it in if_changed and friends.
+ .PHONY: $(PHONY)
++
++cm-fx6-firmware:
++	@echo cm-fx6-firmware
++	$(objtree)/tools/mkimage -n $(objtree)/board/compulab/cm_fx6/imximage.cfg.cfgtmp -T imximage -e 0x00908000 -d $(objtree)/spl/u-boot-spl.bin spl.img
++	dd if=/dev/zero count=500 bs=1K | tr '\000' '\377' > cm-fx6-firmware
++	dd if=spl.img of=cm-fx6-firmware bs=1K seek=1 conv=notrunc && dd if=u-boot.img of=cm-fx6-firmware bs=1K seek=64 conv=notrunc
diff --git a/recipes-bsp/u-boot/u-boot-compulab_2014.10.bb b/recipes-bsp/u-boot/u-boot-compulab_2014.10.bb
index 02651e0..ed5dc78 100644
--- a/recipes-bsp/u-boot/u-boot-compulab_2014.10.bb
+++ b/recipes-bsp/u-boot/u-boot-compulab_2014.10.bb
@@ -6,12 +6,24 @@ LIC_FILES_CHKSUM = "file://configs/cm_fx6_defconfig;md5=549452418e9e099e5fe19ef1
 
 PROVIDES += "u-boot"
 
-SRCBRANCH = "utilite/master"
-SRCREV = "6803a75f3d40bee3b53f56e7b49c70465819b7ca"
-SRC_URI = "git://github.com/utilite-computer/u-boot.git;branch=${SRCBRANCH}"
-SRC_URI[md5sum] = "fd8234c5b3a460430689848c1f16acef"
+SRC_URI[md5sum] = "78c144ab4a84e063829c81a50174dcca"
+SRC_URI[sha256sum] = "cce769aec902a952e6425e88aa7973680a019ebb2b34359a2417a2bd1f553435"
+SRC_URI = "https://github.com/utilite-computer/u-boot/archive/v2014.10-cm-fx6-2.2.zip"
 
-S = "${WORKDIR}/git"
+S = "${WORKDIR}/u-boot-2014.10-cm-fx6-2.2"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "cm-fx6"
+
+SRC_URI += "file://cm-fx6-firmware.patch"
+
+do_compile_append() {
+	oe_runmake
+	oe_runmake cm-fx6-firmware
+}
+
+do_deploy_append() {
+	install ${S}/cm-fx6-firmware ${DEPLOYDIR}/cm-fx6-firmware
+	rm ${DEPLOYDIR}/u-boot*imx
+	dd if=${DEPLOYDIR}/cm-fx6-firmware of=${DEPLOYDIR}/u-boot-cm-fx6.imx skip=2 bs=512
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-10-01  9:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-30 15:13 [meta-fsl-arm-extra][PATCH 1/4] u-boot-compulab: update the build recipe Valentin Raevsky
2015-09-30 15:13 ` [meta-fsl-arm-extra][PATCH 2/4] firmware-compulab: add firmware configuration for cm-fx6 machines Valentin Raevsky
2015-09-30 15:29   ` Otavio Salvador
2015-09-30 15:13 ` [meta-fsl-arm-extra][PATCH 3/4] cm-fx6: update the cm-fx6 machine configuration Valentin Raevsky
2015-10-01  8:36   ` Igor Grinberg
2015-09-30 15:13 ` [meta-fsl-arm-extra][PATCH 4/4] linux-compulab: update cm-fx6 3.14.28 kernel configuration Valentin Raevsky
2015-10-01  9:32   ` Igor Grinberg
2015-09-30 15:27 ` [meta-fsl-arm-extra][PATCH 1/4] u-boot-compulab: update the build recipe Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.