From d4d38760842d0022057479f8e65a8cebc7bb94d8 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Tue, 7 Jun 2016 16:25:54 -0400 Subject: Add a u-boot 2016.05 recipe Adding a 2016.05 u-boot for the AST2500. AST2400 remains on 2013.07. Signed-off-by: Brad Bishop --- .../recipes-bsp/u-boot/u-boot-fw-utils_2016.05.bb | 46 ++++++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-mkimage_2016.05.bb | 29 ++++++++++++++ .../common/recipes-bsp/u-boot/u-boot_2016.05.bb | 12 ++++++ 3 files changed, 87 insertions(+) create mode 100644 meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.05.bb create mode 100644 meta-phosphor/common/recipes-bsp/u-boot/u-boot-mkimage_2016.05.bb create mode 100644 meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.05.bb (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.05.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.05.bb new file mode 100644 index 000000000..305c2b7da --- /dev/null +++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.05.bb @@ -0,0 +1,46 @@ +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" +SECTION = "bootloader" +DEPENDS = "mtd-utils" + +SRCREV = "d0847e6b3eda43d4d2b4f9928a549c3c2d52865f" +UBRANCH = "v2016.05-ast2500" +SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https" + +PV = "v2016.05+git${SRCPV}" + +S = "${WORKDIR}/git" + +INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' +EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' + +inherit uboot-config + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake env +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv + install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config +} + +do_install_class-cross () { + install -d ${D}${bindir_cross} + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv +} + +SYSROOT_PREPROCESS_FUNCS_class-cross = "uboot_fw_utils_cross" +uboot_fw_utils_cross() { + sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross} +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" +BBCLASSEXTEND = "cross" diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot-mkimage_2016.05.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot-mkimage_2016.05.bb new file mode 100644 index 000000000..eed5f9c1f --- /dev/null +++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot-mkimage_2016.05.bb @@ -0,0 +1,29 @@ +SUMMARY = "U-Boot bootloader image creation tool" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" +SECTION = "bootloader" + +DEPENDS = "openssl" + +SRCREV = "d0847e6b3eda43d4d2b4f9928a549c3c2d52865f" +UBRANCH = "v2016.05-ast2500" +SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https" + +PV = "v2016.05+git${SRCPV}" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1' + +do_compile () { + oe_runmake sandbox_defconfig + oe_runmake cross_tools NO_SDL=1 +} + +do_install () { + install -d ${D}${bindir} + install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage + ln -sf uboot-mkimage ${D}${bindir}/mkimage +} + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.05.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.05.bb new file mode 100644 index 000000000..0a229d5e1 --- /dev/null +++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.05.bb @@ -0,0 +1,12 @@ +require recipes-bsp/u-boot/u-boot.inc + +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" +DEPENDS += "dtc-native" + +SRCREV = "d0847e6b3eda43d4d2b4f9928a549c3c2d52865f" +UBRANCH = "v2016.05-ast2500" +SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https" + +PV = "v2016.05+git${SRCPV}" + +EXTRA_OEMAKE_append = " KCFLAGS=-fgnu89-inline" -- cgit v1.2.1