Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 83472E00DB8; Wed, 30 Sep 2015 09:02:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, SPF_HELO_PASS,T_DKIM_INVALID autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Received: from compulab.co.il (softlayer.compulab.co.il [50.23.254.55]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6E497E00CAA for ; Wed, 30 Sep 2015 09:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=compulab.co.il; s=default; h=Message-Id:Date:Subject:To:From; bh=UkN191tqkiUE8kmGMfBzSVy6QH9fmvIVi+IWjsUCjn8=; b=kamEB8WkL0MkGHai0VO27/eIcGbGoFBjYoEpkm3uVSnBGwbfOBO8sxNDsPCGutcTeJdfu7TH4P+gdatBz9Sr42xs4t3Ifou18/50DNw5vC2nKJzMGaFjcnh5csWmYFVbvLA/XF96Ee8jnxGO/1x9e+BQEf6ajwl8tzJgLTIZIsM=; Received: from [62.90.235.247] (port=34084 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.85) (envelope-from ) id 1ZhJ4x-0004rc-So; Wed, 30 Sep 2015 18:14:00 +0300 Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id ADB7048872B; Wed, 30 Sep 2015 18:13:58 +0300 (IDT) Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id mZ1nuHsmRLgX; Wed, 30 Sep 2015 18:13:58 +0300 (IDT) Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 1625348872C; Wed, 30 Sep 2015 18:13:58 +0300 (IDT) X-Virus-Scanned: amavisd-new at zimbra-mta.compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VFBi0wb7NY3Z; Wed, 30 Sep 2015 18:13:58 +0300 (IDT) Received: from devel.compulab.local (val-64.compulab.local [192.168.11.170]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id D6EFF488728; Wed, 30 Sep 2015 18:13:57 +0300 (IDT) From: Valentin Raevsky To: meta-freescale@yoctoproject.org, otavio@ossystems.com.br Date: Wed, 30 Sep 2015 18:13:44 +0300 Message-Id: <1443626027-26921-1-git-send-email-valentin@compulab.co.il> X-Mailer: git-send-email 1.9.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Get-Message-Sender-Via: softlayer.compulab.co.il: acl_c_relayhosts_text_entry: valentin@compulab.co.il|compulab.co.il Subject: [meta-fsl-arm-extra][PATCH 1/4] u-boot-compulab: update the build recipe. X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 16:02:37 -0000 1) Add the cm-fx6-firmware build and deploy methods. 2) Update the u-boot SRC_URI. Signed-off-by: Valentin Raevsky --- .../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