Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 08049E00CC1; Tue, 10 Oct 2017 02:43:02 -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, SPF_HELO_PASS 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 * [104.47.42.114 listed in list.dnswl.org] * -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.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0114.outbound.protection.outlook.com [104.47.42.114]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E61DBE00CC1 for ; Tue, 10 Oct 2017 02:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freescale.onmicrosoft.com; s=selector1-freescale-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8pzlkIUbYtprVimai20CDugm/T1JvqJZleLwjayn1ek=; b=jncXxKfEnourfwjAMlLt3fm8XyeP3PrGWvRM+BVasPNvfZEWTDfqD//j7i2VJWVfZeCBDZMXvxnyzkD68OGirVaz5q2IFOgbL0rRHDPeNSJybtevVHqELUfRtDKScr4inBRIgkoefaWU6Pe0BxpBDr9DWXFiYm7sOQqGbbZ2hxc= Received: from BN6PR03CA0012.namprd03.prod.outlook.com (10.168.230.150) by BN6PR03MB2980.namprd03.prod.outlook.com (10.175.126.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 09:42:57 +0000 Received: from BY2FFO11FD027.protection.gbl (2a01:111:f400:7c0c::127) by BN6PR03CA0012.outlook.office365.com (2603:10b6:404:23::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7 via Frontend Transport; Tue, 10 Oct 2017 09:42:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD027.mail.protection.outlook.com (10.1.15.216) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Tue, 10 Oct 2017 09:42:57 +0000 Received: from sun.ap.freescale.net (sun.ap.freescale.net [10.192.208.75]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9A9gqTG027363; Tue, 10 Oct 2017 02:42:54 -0700 From: Chunrong Guo To: Date: Tue, 10 Oct 2017 17:42:27 +0800 Message-ID: <1507628565-28008-2-git-send-email-B40290@freescale.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1507628565-28008-1-git-send-email-B40290@freescale.com> References: <1507628565-28008-1-git-send-email-B40290@freescale.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(85426001)(104016004)(4326008)(5003940100001)(6666003)(498600001)(189998001)(81156014)(53936002)(81166006)(8676002)(105606002)(106466001)(76176999)(50986999)(5660300001)(42882006)(305945005)(575784001)(36756003)(2351001)(8936002)(356003)(16586007)(48376002)(316002)(2950100002)(6916009)(47776003)(8656003)(68736007)(54906003)(77096006)(97736004)(50226002)(2906002)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR03MB2980; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD027; 1:f+hAGctuM124zsv/y7YQvxDdY/D2vt3Vb9Ck/vSTA91hvY0rND1X1MWA0bajDCzcx3Cy891wLoog6IY7kVX6ZTxfgmDY5JygWzoOMhP1ccYsNniGx9lLhwtDaBdRhPdN MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 06869b13-de79-4e26-05ed-08d50fc349ba X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR03MB2980; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2980; 3:QljtVdIPOhFnq4NoKhdTedDwpb/UYzAO41myOf1M2ly2fjJ736m3GOIkb9pGe9kiYEeaAvvZ71pf1CZXJEWyBS+xzcHuyPsJkm5y6VfmsJgnzfYmXQvbWeb4PznilhgEcMKz3VVBrjvNuQLzmaWXNCiohSjr92BFI2fkYOzGnaBMU7IVtPXCFJ51eAMcX5mW/YpgiGcUiWCmi/xlwc6SqS5cJ936V5w573zdrrwKJIOkzlIxN4KR8xkZpzrWJtLH5U/wCrKXVQEfrewxFkDldS9VLYRyqNuuR9G8M6Eujzy1Kb7xrsaEDgKEAHfhy1gOR2rWSWGkxY9WJ5rIvr4BGuANLLv0egq2X1y5AnbQze4=; 25:8dZfLIXMFPITrVy5gFbOUM7lsbDnsdbuteAHdTi37Y9LjFA+o4J/KfzW4QRCcovH6tcd31kL0dbMulXdjnD7SQ+Nov1cY2Q/isKz21xRAS/Bj0Jude846VYrY2mPJ2SX4XVHkzP2FeBRujmyIExi09lcUEiKOIdKFAQRDG01S1h8cd3D2AKb2JON6QD965mDhrtZiDZg8xDtoPT+ZFQGnWjKn96gamI/f04VUxxYmI5QU/RaFHoFiuvnR5p1kwqxuaKKHdjMRcMQskDxKz/oZFsM3DESVHw+eOEUjL/AzyzsRKDzE0eTVCI1kZByU+YstvwAU0o2LbB2jI+EyBgEhg== X-MS-TrafficTypeDiagnostic: BN6PR03MB2980: X-LD-Processed: 710a03f5-10f6-4d38-9ff4-a80b81da590d,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2980; 31:RJ7f4XQNokBagszA+jqrbzI4SOZWskohhH7Fn6qdEHIPgXq848fhT+aHzleM52UQpoNn2YRxwyc8b1oRgcbuO1YW7PfUTakAqsnoDCRBbuvk1ooRJspHFK+uBYQzGGlndJyQDAo494YPDszxKR/Gcjmj3QUo9GYvC/Y/FLMGQWzea6MrV7mFfMcaDm+zqMCV+X4RDy/4yseS+OK7IX4NaPnlu9u2Z8LC2wI4pE9vIMQ=; 20:XoV0M9FTT3Eb2jq47Ip/4LCHQZHDGpqBo8C4bj2kpeueQos7qZDnt1cdO4+QodEdIDNZuw1TzYl6FTNJehOdd5aK0ZGIi/JFZhdLadJaRokDmyiw7zgi1CDHrwaoFYEspJo7rQDvYZOBikCN70XYO1PrGfkoiJXr94j8PyNnRvCXCmUn4IXovbNdKy90r0zcIP94aDwvScQ8ILfSZMS6Kxr6xZg5w7/NU7zAJabYE+/yVU84ZNM5JJhE4v0Meu05l/zQgDIjse9RsFw8BVvongjLXcm04xktneHVVmX/4vKg2pjov0zwD8u7uIglfBiSrIH5E7Ca7Fz12xyHQa/4SecfAe1rmKNtNjObGpbvpl0NdR34KN/FX01NbzwSIvkKvwqlDzTgjGDxQvGo7360gk+JpnUnPIq+bi4D01OhkWHFtXFmMFdlW60FYUvqky2AQ0RH/24RxLZuL+l4/cvEHj4yi8CBYY1OChq028zfuch3B6gdiKMYMkB/HeLUVGNZ6cXwVPjoU0V2LywrEhU+WrYgVF7T/wXdWLR7bR3JRb671g6jHWkP8ibE47wJYVz1LI3rGd8QDs5/zzdqC9oswbNV9GMudIv6KoVCYn7nlVg= X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(185117386973197)(788757137089); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6055026)(6041248)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123560025)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2980; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2980; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2980; 4:WAem/9jh9c+fxtokMnuO9e/3dgF8VYSxeLp/WIpXKsnANtn+xPiC88CQrNT3pqVhu5Lr7Grgon1deq8nR4hr7FmnzIyCPm6NlWIOAHQzqJ8bTNZGZ9CsBaqeviPR1zXwc55tEj0Nuf+I+x1ZczI5xbb116tK9Q10XpI+cVLWDNW8ACUNIXL9VeJ4/HJW65OspBQ6oG+i3AQPjlDvBPn+Ks0vm4uULn3KBBUjXS8oDsQxJA44lsQbIu6UM2+INKMxDtBghqPrGbceyLOW4SaS34/6BLNM/y0FTsCgLVdfI8wjND69dDQaw/b1VL+WiV2UVsve2AJw8XGYQyNiLPQOL2JlnHMnHkvsN8gOK/TaM98= X-Forefront-PRVS: 04569283F9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2980; 23:rGdwe/htaDr89toAewdHBI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ZwYW6ls1YOanH29DV2Axs7pcHaPGns+jzTJtFNV6XU8FHZL3jGbCaKBkAv2H/SaXjNBVLxqCjclNW+y00wFlqearfZ19vpMMhwCfLWDomrQZfKTCUStXjHwK0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 09:42:57.0888 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2980 Cc: chunrong.guo@nxp.com Subject: [PATCH 02/20] uboot: update to upgrade to 2017.09 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 Oct 2017 09:43:02 -0000 Content-Type: text/plain From: Chunrong Guo Signed-off-by: Chunrong Guo --- recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb | 93 ------------------- recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb | 142 +++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+), 93 deletions(-) delete mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb create mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb b/recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb deleted file mode 100644 index 5bde945..0000000 --- a/recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb +++ /dev/null @@ -1,93 +0,0 @@ -require recipes-bsp/u-boot/u-boot.inc - -DESCRIPTION = "U-Boot provided by Freescale with focus on QorIQ boards" -PROVIDES += "u-boot" -LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" -LIC_FILES_CHKSUM = " \ - file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ - file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ - file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ - file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ -" - -PV_append = "+fslgit" -INHIBIT_DEFAULT_DEPS = "1" -DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc" -DEPENDS_append_qoriq-arm64 = " change-file-endianess-native dtc-native tcl-native" -DEPENDS_append_qoriq-arm = " change-file-endianess-native dtc-native tcl-native" -DEPENDS_append_qoriq-ppc = " boot-format-native" - -SRC_URI = "git://github.com/qoriq-open-source/u-boot.git;nobranch=1 \ - file://fix-build-error-under-gcc6.patch \ -" -SRCREV = "6fc2946a7b1973a8221cdfeccd1666f2d8eec467" - -S = "${WORKDIR}/git" - -python () { - if d.getVar("TCMODE", True) == "external-fsl": - return - - ml = d.getVar("MULTILIB_VARIANTS", True) - arch = d.getVar("OVERRIDES", True) - - if "e5500-64b:" in arch or "e6500-64b:" in arch: - if not "lib32" in ml: - raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") - sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' - sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') - workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib) - d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) - d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') - d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') - elif "fsl-lsch2-32b:" in arch: - if not "lib64" in ml: - raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") - sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' - sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') - workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib) - d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc') - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) - d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') - d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') -} - -WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" -EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1' -EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' - -inherit fsl-u-boot-localversion -LOCALVERSION = "+fsl" - -do_compile_append_qoriq() { - unset i j k - for config in ${UBOOT_MACHINE}; do - i=`expr $i + 1`; - for type in ${UBOOT_CONFIG}; do - j=`expr $j + 1`; - for binary in ${UBOOT_BINARIES}; do - k=`expr $k + 1` - if [ $j -eq $i ] && [ $k -eq $i ]; then - if [ -n "${BOOTFORMAT_CONFIG}" ] && echo "${type}" |grep -q spi;then - # regenerate spi binary if BOOTFORMAT_CONFIG is set - boot_format ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ - ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi ${config}/u-boot.format.bin - cp ${config}/u-boot.format.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX} - elif [ "qspi" = "${type}" ];then - cp ${config}/${binary} ${config}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} - fi - fi - done - unset k - done - unset j - done - unset i -} - - -PACKAGES += "${PN}-images" -FILES_${PN}-images += "/boot" -COMPATIBLE_MACHINE = "(qoriq)" diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb b/recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb new file mode 100644 index 0000000..3fe9fac --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb @@ -0,0 +1,142 @@ +require recipes-bsp/u-boot/u-boot.inc + +DESCRIPTION = "U-Boot provided by Freescale with focus on QorIQ boards" +PROVIDES += "u-boot" +LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" +LIC_FILES_CHKSUM = " \ + file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ + file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ + file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ + file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ +" + +PV_append = "+fslgit" +INHIBIT_DEFAULT_DEPS = "1" +DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc" +DEPENDS_append_qoriq-arm64 = " change-file-endianess-native dtc-native tcl-native" +DEPENDS_append_qoriq-arm = " change-file-endianess-native dtc-native tcl-native" +DEPENDS_append_qoriq-ppc = " boot-format-native" + +SRC_URI = "git://github.com/qoriq-open-source/u-boot.git;nobranch=1 \ + file://fix-build-error-under-gcc6.patch \ +" +SRCREV = "503eff00a7119d2690a662ed64e83e4782b7d3d9" + +S = "${WORKDIR}/git" + +python () { + if d.getVar("TCMODE", True) == "external-fsl": + return + + ml = d.getVar("MULTILIB_VARIANTS", True) + arch = d.getVar("OVERRIDES", True) + + if "e5500-64b:" in arch or "e6500-64b:" in arch: + if not "lib32" in ml: + raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") + sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' + sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') + workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib) + d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) + d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') + d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') + elif "fsl-lsch2-32b:" in arch: + if not "lib64" in ml: + raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") + sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' + sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') + workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib) + d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc') + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) + d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') + d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') +} + +WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" +EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1' +EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' + +inherit fsl-u-boot-localversion +LOCALVERSION = "+fsl" + +do_compile_append_qoriq() { + unset i j k + for config in ${UBOOT_MACHINE}; do + i=`expr $i + 1`; + for type in ${UBOOT_CONFIG}; do + j=`expr $j + 1`; + for binary in ${UBOOT_BINARIES}; do + k=`expr $k + 1` + if [ $j -eq $i ] && [ $k -eq $i ]; then + if [ -n "${BOOTFORMAT_CONFIG}" ] && echo "${type}" |grep -q spi;then + # regenerate spi binary if BOOTFORMAT_CONFIG is set + boot_format ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ + ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi ${config}/u-boot.format.bin + cp ${config}/u-boot.format.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX} + elif [ "qspi" = "${type}" ];then + cp ${config}/${binary} ${config}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} + elif [ "sdcard-secure-boot" = "${type}" ];then + cp ${config}/spl/u-boot-spl.bin ${config}/u-boot-spl.bin + elif [ "nand-secure-boot" = "${type}" ];then + cp ${config}/spl/u-boot-spl.bin ${config}/u-boot-spl.bin + fi + fi + done + unset k + done + unset j + done + unset i +} + +do_install_append_qoriq() { + if [ -n "${UBOOT_CONFIG}" ] + then + for config in ${UBOOT_MACHINE}; do + i=$(expr $i + 1); + for type in ${UBOOT_CONFIG}; do + j=$(expr $j + 1); + if [ $j -eq $i ]; then + if [ "sdcard-secure-boot" = "${type}" ];then + install -m 644 ${B}/${config}/u-boot-spl.bin ${D}/boot/uboot-${type}-spl.bin + install -m 644 ${B}/${config}/u-boot-dtb.bin ${D}/boot/uboot-${type}-dtb.bin + elif [ "nand-secure-boot" = "${type}" ];then + install -m 644 ${B}/${config}/u-boot-spl.bin ${D}/boot/uboot-${type}-spl.bin + install -m 644 ${B}/${config}/u-boot-dtb.bin ${D}/boot/uboot-${type}-dtb.bin + fi + fi + done + unset j + done + unset i + fi +} + +do_deploy_append_qoriq() { + if [ -n "${UBOOT_CONFIG}" ] + then + for config in ${UBOOT_MACHINE}; do + i=$(expr $i + 1); + for type in ${UBOOT_CONFIG}; do + j=$(expr $j + 1); + if [ $j -eq $i ]; then + if [ "sdcard-secure-boot" = "${type}" ] || [ "nand-secure-boot" = "${type}" ];then + install -d {DEPLOYDIR} + install -m 644 ${B}/${config}/u-boot-spl.bin ${DEPLOYDIR}/uboot-${type}-spl.bin + install -m 644 ${B}/${config}/u-boot-dtb.bin ${DEPLOYDIR}/uboot-${type}-dtb.bin + fi + fi + done + unset j + done + unset i + fi +} + + + +PACKAGES += "${PN}-images" +FILES_${PN}-images += "/boot" +COMPATIBLE_MACHINE = "(qoriq)" -- 1.9.0