]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-qoriq: use a u-boot-qoriq-common include
authorJoris Offouga <offougajoris@gmail.com>
Mon, 15 Oct 2018 15:03:34 +0000 (17:03 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 26 Oct 2018 14:46:14 +0000 (11:46 -0300)
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 <offougajoris@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/u-boot/u-boot-qoriq-common_2018.03.inc [new file with mode: 0644]
recipes-bsp/u-boot/u-boot-qoriq_2018.03.bb

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 (file)
index 0000000..5be64e4
--- /dev/null
@@ -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
index 48646c03368ff5583f30ffb4dfa3ad5e8c7169b6..0ad754f763e02409aee5c786f5bc94526c2ac886 100644 (file)
@@ -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