Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 77BEFE00CCC; Tue, 10 Jul 2018 06:21:18 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.53 listed in list.dnswl.org] * -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.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0301CE00B57 for ; Tue, 10 Jul 2018 06:21:16 -0700 (PDT) Received: by mail-wm0-f53.google.com with SMTP id z13-v6so24319308wma.5 for ; Tue, 10 Jul 2018 06:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JT4q5s8ePsrVc6Jj0nnfQ+UzTEzI4CFHGftb/IJF7zs=; b=V9u8rEyClxAahtCFKAcuTNliIFL8wZUk8gPvhq4ubzRey6hiiYawsuND63bvcxVi9O L5gSg7cApkNn0cmeGZCIFVyKLoGKUx18qvoAGkgiUAkEeu/bxjAdMPkzKzSFqotK6hsP vV6Y8OMtf+a7BQObz5eFES8U3B+u4b9O9VfP47vpwyws3WsoeDaHGyD2PWF2HHFja2kc HANudwbPNeuMWPwCLdKoQ0x4OKvj1E4CqEQ42Xn6729KzxovNwZO4ZXy7EiQXgnrTnF7 9vt40agWna6wnA+7sBbVQj1nZFUrBu3pqpU+fFyOCQvxDbuQIAV4QU9hL5tuPP0Ol/O8 52Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JT4q5s8ePsrVc6Jj0nnfQ+UzTEzI4CFHGftb/IJF7zs=; b=dC31JBJgwbpI/CAPOhQYUHjacTDXthkZH+Qapo3sQWXScQ9KLJYT+Z6jHTRl2249+f vShDRVeGxQ7sdTDdtxqyjbQl1QKut54NFwgSQQRciMIIc89nUM9WSu57BqSw75X1gTWt yYkBrqxNMVvipTa3ON0bvn9GGkc7K/lKXR318NU6FVcla747zA1+8qm/+stiKJEkUlIl Iy4j4eGVOliBD1kCiAPkUivsdGfFeoicMFU3mrwiVTUc5I19y0F+GQM7XCLJ/EGZiVts wLn759nVN9VXAnqHBO4GUGixj1KA2ZjDJ827FZN4JOX1go5x9aYvDIGh01izDoFTwr/9 Z0Ow== X-Gm-Message-State: APt69E1/UJ6WuEn4jkrC/2ZE4u7HYHiNNXfd9QxeKFj+TK23Bze4JxEO 3o2NMNOPCkZfkdWCKxy8lXRe4arQ X-Google-Smtp-Source: AAOMgpeyl+gnWL9evQqX2Pe4yFwrJqXjxXnfjYGkLFhyvDCBtKsVUTDG80Q4TAPjzzJ3wAzrWA8dkA== X-Received: by 2002:a1c:13ca:: with SMTP id 193-v6mr14069176wmt.127.1531228875798; Tue, 10 Jul 2018 06:21:15 -0700 (PDT) Received: from g751.home (2a01cb040a78e300981d7402d6f3c8a5.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:981d:7402:d6f3:c8a5]) by smtp.googlemail.com with ESMTPSA id g11-v6sm11817363wrm.31.2018.07.10.06.21.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 06:21:14 -0700 (PDT) From: Gary Bisson To: meta-freescale@yoctoproject.org Date: Tue, 10 Jul 2018 15:21:05 +0200 Message-Id: <20180710132108.5622-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710132108.5622-1-gary.bisson@boundarydevices.com> References: <20180710132108.5622-1-gary.bisson@boundarydevices.com> Subject: [3rdparty][PATCH][sumo 1/4] u-boot-boundary: bump version to v2017.07 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: Tue, 10 Jul 2018 13:21:18 -0000 Brings many updates/fixes, most important one being the use of standard bootdistro commands/variables. Therefore the legacy 6x_bootscript/upgrade scripts have been removed in favor of boot.scr and upgrade.scr. Also, the HOSTCC patch isn't needed anymore since included in mainline U-Boot. Signed-off-by: Gary Bisson --- ...inc => u-boot-boundary-common_2017.07.inc} | 6 +-- .../default-gcc.patch | 39 -------------- ...bb => u-boot-boundary-fw-utils_2017.07.bb} | 1 - ..._2016.03.bb => u-boot-boundary_2017.07.bb} | 0 .../u-boot/u-boot-script-boundary_2016.03.bb | 54 ------------------- .../u-boot/u-boot-script-boundary_2017.07.bb | 45 ++++++++++++++++ 6 files changed, 48 insertions(+), 97 deletions(-) rename recipes-bsp/u-boot/{u-boot-boundary-common_2016.03.inc => u-boot-boundary-common_2017.07.inc} (72%) delete mode 100644 recipes-bsp/u-boot/u-boot-boundary-fw-utils/default-gcc.patch rename recipes-bsp/u-boot/{u-boot-boundary-fw-utils_2016.03.bb => u-boot-boundary-fw-utils_2017.07.bb} (97%) rename recipes-bsp/u-boot/{u-boot-boundary_2016.03.bb => u-boot-boundary_2017.07.bb} (100%) delete mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_2017.07.bb diff --git a/recipes-bsp/u-boot/u-boot-boundary-common_2016.03.inc b/recipes-bsp/u-boot/u-boot-boundary-common_2017.07.inc similarity index 72% rename from recipes-bsp/u-boot/u-boot-boundary-common_2016.03.inc rename to recipes-bsp/u-boot/u-boot-boundary-common_2017.07.inc index 1dc609a..4263fa1 100644 --- a/recipes-bsp/u-boot/u-boot-boundary-common_2016.03.inc +++ b/recipes-bsp/u-boot/u-boot-boundary-common_2017.07.inc @@ -2,10 +2,10 @@ DESCRIPTION = "U-Boot for Boundary Devices boards" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" -PV = "v2016.03+git${SRCPV}" +PV = "v2017.07+git${SRCPV}" -SRCREV = "0dbffd30b6a81b53c8a4780490ea625ccbfa5596" -SRCBRANCH = "boundary-v2016.03" +SRCREV = "445823ef2abfff2fc1c63cc53c57c1e139f88b1b" +SRCBRANCH = "boundary-v2017.07" SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}" S = "${WORKDIR}/git" diff --git a/recipes-bsp/u-boot/u-boot-boundary-fw-utils/default-gcc.patch b/recipes-bsp/u-boot/u-boot-boundary-fw-utils/default-gcc.patch deleted file mode 100644 index 04184df..0000000 --- a/recipes-bsp/u-boot/u-boot-boundary-fw-utils/default-gcc.patch +++ /dev/null @@ -1,39 +0,0 @@ -OE needs to be able to change the default compiler. If we pass in HOSTCC -through the make command, it overwrites not only this setting but also the -setting in tools/Makefile wrapped in ifneq ($(CROSS_BUILD_TOOLS),) which -breaks the build. - -We therefore use override to ensure the value of HOSTCC is overwritten when -needed. - -RP: Updated the patch to the version being submitted to upstream u-boot - -Upstream-Status: Submitted [emailed to Masahiro Yamada for discussion] -RP 2017/3/11 - -Index: git/tools/Makefile -=================================================================== ---- git.orig/tools/Makefile -+++ git/tools/Makefile -@@ -262,7 +262,7 @@ $(LICENSE_H): $(obj)/bin2header $(srctre - subdir- += env - - ifneq ($(CROSS_BUILD_TOOLS),) --HOSTCC = $(CC) -+override HOSTCC = $(CC) - - quiet_cmd_crosstools_strip = STRIP $^ - cmd_crosstools_strip = $(STRIP) $^; touch $@ -Index: git/tools/env/Makefile -=================================================================== ---- git.orig/tools/env/Makefile -+++ git/tools/env/Makefile -@@ -8,7 +8,7 @@ - # fw_printenv is supposed to run on the target system, which means it should be - # built with cross tools. Although it may look weird, we only replace "HOSTCC" - # with "CC" here for the maximum code reuse of scripts/Makefile.host. --HOSTCC = $(CC) -+override HOSTCC = $(CC) - - # Compile for a hosted environment on the target - HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \ diff --git a/recipes-bsp/u-boot/u-boot-boundary-fw-utils_2016.03.bb b/recipes-bsp/u-boot/u-boot-boundary-fw-utils_2017.07.bb similarity index 97% rename from recipes-bsp/u-boot/u-boot-boundary-fw-utils_2016.03.bb rename to recipes-bsp/u-boot/u-boot-boundary-fw-utils_2017.07.bb index fa0718b..f5dd879 100644 --- a/recipes-bsp/u-boot/u-boot-boundary-fw-utils_2016.03.bb +++ b/recipes-bsp/u-boot/u-boot-boundary-fw-utils_2017.07.bb @@ -4,7 +4,6 @@ SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" DEPENDS = "mtd-utils" SRC_URI += " \ - file://default-gcc.patch \ file://fw_env.config \ " diff --git a/recipes-bsp/u-boot/u-boot-boundary_2016.03.bb b/recipes-bsp/u-boot/u-boot-boundary_2017.07.bb similarity index 100% rename from recipes-bsp/u-boot/u-boot-boundary_2016.03.bb rename to recipes-bsp/u-boot/u-boot-boundary_2017.07.bb diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb b/recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb deleted file mode 100644 index b63548e..0000000 --- a/recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb +++ /dev/null @@ -1,54 +0,0 @@ -require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc - -DEPENDS = "u-boot-mkimage-native" - -inherit deploy - -BOOTSCRIPT ??= "${S}/board/boundary/nitrogen6x/6x_bootscript-yocto-3.14.txt" -BOOTSCRIPT_use-mainline-bsp ??= "${S}/board/boundary/nitrogen6x/6x_bootscript-mainline.txt" - -UPGRADESCRIPT = "${S}/board/boundary/nitrogen6x/6x_upgrade.txt" - -do_mkimage () { - # allow deploy to use the ${MACHINE} name to simplify things - if [ ! -d ${S}/board/boundary/${MACHINE} ]; then - mkdir ${S}/board/boundary/${MACHINE} - fi - - uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ - -n "boot script" -d ${BOOTSCRIPT} \ - ${S}/board/boundary/${MACHINE}/6x_bootscript - - uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ - -n "upgrade script" -d ${UPGRADESCRIPT} \ - ${S}/board/boundary/${MACHINE}/6x_upgrade -} - -addtask mkimage after do_compile before do_install - -do_compile[noexec] = "1" - -do_install () { - install -D -m 644 ${S}/board/boundary/${MACHINE}/6x_bootscript \ - ${D}/6x_bootscript - install -D -m 644 ${S}/board/boundary/${MACHINE}/6x_upgrade \ - ${D}/6x_upgrade -} - -do_deploy () { - install -D -m 644 ${D}/6x_bootscript \ - ${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR} - install -D -m 644 ${D}/6x_upgrade \ - ${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR} - - cd ${DEPLOYDIR} - rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE} - ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE} - ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE} -} - -addtask deploy after do_install before do_build - -FILES_${PN} += "/" - -COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite|nitrogen6sx|nitrogen7)" diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_2017.07.bb b/recipes-bsp/u-boot/u-boot-script-boundary_2017.07.bb new file mode 100644 index 0000000..211cb84 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-script-boundary_2017.07.bb @@ -0,0 +1,45 @@ +require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc + +DEPENDS = "u-boot-mkimage-native" + +inherit deploy + +BOOTSCRIPT ??= "${S}/board/boundary/bootscripts/bootscript-yocto.txt" +BOOTSCRIPT_use-mainline-bsp ??= "${S}/board/boundary/bootscripts/bootscript-mainline.txt" + +UPGRADESCRIPT = "${S}/board/boundary/bootscripts/upgrade.txt" + +do_mkimage () { + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "boot script" -d ${BOOTSCRIPT} ${S}/boot.scr + + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "upgrade script" -d ${UPGRADESCRIPT} ${S}/upgrade.scr +} + +addtask mkimage after do_compile before do_install + +do_compile[noexec] = "1" + +do_install () { + install -D -m 644 ${S}/boot.scr ${D}/boot.scr + install -D -m 644 ${S}/upgrade.scr ${D}/upgrade.scr +} + +do_deploy () { + install -D -m 644 ${D}/boot.scr \ + ${DEPLOYDIR}/boot.scr-${MACHINE}-${PV}-${PR} + install -D -m 644 ${D}/upgrade.scr \ + ${DEPLOYDIR}/upgrade.scr-${MACHINE}-${PV}-${PR} + + cd ${DEPLOYDIR} + rm -f boot.scr-${MACHINE} upgrade.scr-${MACHINE} + ln -sf boot.scr-${MACHINE}-${PV}-${PR} boot.scr-${MACHINE} + ln -sf upgrade.scr-${MACHINE}-${PV}-${PR} upgrade.scr-${MACHINE} +} + +addtask deploy after do_install before do_build + +FILES_${PN} += "/" + +COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite|nitrogen6sx|nitrogen7)" -- 2.18.0