From: Joris Offouga Date: Mon, 15 Oct 2018 15:03:34 +0000 (+0200) Subject: u-boot-qoriq: use a u-boot-qoriq-common include X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1925b1cce5efb6dce8bea68177b09a27a66acc83;p=meta-freescale.git u-boot-qoriq: use a u-boot-qoriq-common include Use a common file to make easier update, maintain and create others U-Boot recipes like U-Boot fw-utils. Signed-off-by: Joris Offouga Signed-off-by: Otavio Salvador --- diff --git a/recipes-bsp/u-boot/u-boot-qoriq-common_2018.03.inc b/recipes-bsp/u-boot/u-boot-qoriq-common_2018.03.inc new file mode 100644 index 00000000..5be64e49 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq-common_2018.03.inc @@ -0,0 +1,19 @@ + +inherit fsl-u-boot-localversion + +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 \ +" + +SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/u-boot;nobranch=1 \ +" +SRCREV = "1e96fd8f464dfe23eb692a11018c20d70546783b" + +S = "${WORKDIR}/git" +PV_append = "+fslgit" +LOCALVERSION = "+fsl" \ No newline at end of file diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2018.03.bb b/recipes-bsp/u-boot/u-boot-qoriq_2018.03.bb index 48646c03..0ad754f7 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2018.03.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2018.03.bb @@ -1,29 +1,15 @@ require recipes-bsp/u-boot/u-boot.inc +require u-boot-qoriq-common_${PV}.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://source.codeaurora.org/external/qoriq/qoriq-components/u-boot;nobranch=1 \ -" -SRCREV = "1e96fd8f464dfe23eb692a11018c20d70546783b" - -S = "${WORKDIR}/git" - python () { if d.getVar("TCMODE", True) == "external-fsl": return @@ -61,9 +47,6 @@ WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${ENDIANNESS_GCC}" LD="${WRAP_TARGET_PREFIX}ld ${ENDIANNESS_LD}" 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