...
 
Commits (4)
......@@ -22,6 +22,7 @@ STANDARD_PKGS = " \
udev \
dfu-util \
pkgconfig \
u-boot-fw-utils \
"
# Extra debug packages
......
DESCRIPTION="Upstream's U-boot configured for allwinner devices"
AUTHOR = "Dimitris Tassopoulos <dimtass@gmail.com>"
DEPENDS += " bc-native dtc-native swig-native python3-native "
DEPENDS_append_sun50i = " atf-sunxi "
LICENSE = "GPLv2+"
COMPATIBLE_MACHINE = "(sun8i|su]n50i)"
DEFAULT_PREFERENCE_sun8i="1"
DEFAULT_PREFERENCE_sun50i="1"
SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
file://${SOC_FAMILY}-boot/boot.cmd \
file://${SOC_FAMILY}-boot/fixup.cmd \
file://do_patch.sh \
file://allwinnerEnv.txt \
"
UBOOT_ENV_SUFFIX = "scr"
UBOOT_ENV = "boot"
UBOOT_FIXUP_BINARY = "fixup.scr"
EXTRA_OEMAKE += ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
EXTRA_OEMAKE_append_sun50i = " BL31=${DEPLOY_DIR_IMAGE}/bl31.bin "
do_compile_sun50i[depends] += "atf-sunxi:do_deploy"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_append := "${THISDIR}/files:"
SRC_URI += " \
file://fw_env.config \
"
# override the default fw_env.config
do_install_append () {
install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
}
\ No newline at end of file
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
DEPENDS = "mtd-utils"
require u-boot-allwinner.inc
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
UBOOT_VER = "2018.05"
SRCREV_default_pn-u-boot-fw-utils = "0157013f4a4945bbdb70bb4d98d680e0845fd784"
PV = "v${UBOOT_VER}+git${SRCPV}"
SRC_URI += " \
file://patches-${UBOOT_VER} \
file://fw_env.config \
"
INSANE_SKIP_${PN} = "already-stripped"
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
EXTRA_OEMAKE_class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
inherit uboot-config
do_configure_prepend() {
cd ${S}
${WORKDIR}/do_patch.sh ${WORKDIR}/patches-${UBOOT_VER}
}
do_compile () {
oe_runmake ${UBOOT_MACHINE}
oe_runmake envtools
}
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 ${WORKDIR}/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_DIRS_append_class-cross = " ${bindir_cross}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
BBCLASSEXTEND = "cross"
\ No newline at end of file
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
DEPENDS = "mtd-utils"
require u-boot-allwinner.inc
LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
UBOOT_VER = "2018.11"
SRCREV_default_pn-u-boot-fw-utils = "0157013f4a4945bbdb70bb4d98d680e0845fd784"
PV = "v${UBOOT_VER}+git${SRCPV}"
SRC_URI += " \
file://patches-${UBOOT_VER} \
file://fw_env.config \
"
INSANE_SKIP_${PN} = "already-stripped"
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
EXTRA_OEMAKE_class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
inherit uboot-config
do_configure_prepend() {
cd ${S}
${WORKDIR}/do_patch.sh ${WORKDIR}/patches-${UBOOT_VER}
}
do_compile () {
oe_runmake ${UBOOT_MACHINE}
oe_runmake envtools
}
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 ${WORKDIR}/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_DIRS_append_class-cross = " ${bindir_cross}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
BBCLASSEXTEND = "cross"
\ No newline at end of file
DESCRIPTION="Upstream's U-boot configured for sunxi devices"
DESCRIPTION="Upstream's U-boot configured for allwinner devices"
AUTHOR = "Dimitris Tassopoulos <dimtass@gmail.com>"
require recipes-bsp/u-boot/u-boot.inc
require u-boot-allwinner.inc
DEPENDS += " bc-native dtc-native swig-native python3-native "
DEPENDS_append_sun50i = " atf-sunxi "
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
COMPATIBLE_MACHINE = "(sun8i|sun50i)"
DEFAULT_PREFERENCE_sun8i="1"
DEFAULT_PREFERENCE_sun50i="1"
SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
file://u-boot-pylibfdt-native-build.patch \
file://${SOC_FAMILY}-boot/boot.cmd \
file://${SOC_FAMILY}-boot/fixup.cmd \
file://do_patch.sh \
file://patches \
file://allwinnerEnv.txt \
"
SRCREV = "890e79f2b1c26c5ba1a86d179706348aec7feef7"
PV = "v2018.05+git${SRCPV}"
PE = "2"
S = "${WORKDIR}/git"
UBOOT_ENV_SUFFIX = "scr"
UBOOT_ENV = "boot"
UBOOT_FIXUP_BINARY = "fixup.scr"
EXTRA_OEMAKE += ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
EXTRA_OEMAKE_append_sun50i = " BL31=${DEPLOY_DIR_IMAGE}/bl31.bin "
SRC_URI += " \
file://patches-2018.05 \
"
do_compile_sun50i[depends] += "atf-sunxi:do_deploy"
do_configure_prepend() {
cd ${S}
${WORKDIR}/do_patch.sh ${WORKDIR}/patches-2018.05
}
do_compile_append() {
cp ${WORKDIR}/${SOC_FAMILY}-boot/boot.cmd ${WORKDIR}/boot.cmd
......@@ -46,11 +26,6 @@ do_compile_append() {
${B}/tools/mkimage -C none -A arm -T script -d ${WORKDIR}/fixup.cmd ${WORKDIR}/${UBOOT_FIXUP_BINARY}
}
do_configure_prepend() {
cd ${S}
${WORKDIR}/do_patch.sh ${WORKDIR}/patches
}
do_deploy_append() {
# Copy also the fixup script to the deploy dir
install -m 644 ${WORKDIR}/${UBOOT_FIXUP_BINARY} ${DEPLOYDIR}/${UBOOT_FIXUP_BINARY}
......
DESCRIPTION="Upstream's U-boot configured for sunxi devices"
DESCRIPTION="Upstream's U-boot configured for allwinner devices"
AUTHOR = "Dimitris Tassopoulos <dimtass@gmail.com>"
require recipes-bsp/u-boot/u-boot.inc
require u-boot-allwinner.inc
DEPENDS += " bc-native dtc-native swig-native python3-native "
DEPENDS_append_sun50i = " atf-sunxi "
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
COMPATIBLE_MACHINE = "(sun8i|sun50i)"
DEFAULT_PREFERENCE_sun8i="1"
DEFAULT_PREFERENCE_sun50i="1"
SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
file://${SOC_FAMILY}-boot/boot.cmd \
file://${SOC_FAMILY}-boot/fixup.cmd \
file://do_patch.sh \
file://patches-2018.11 \
file://allwinnerEnv.txt \
"
SRCREV = "0157013f4a4945bbdb70bb4d98d680e0845fd784"
PV = "v2018.11+git${SRCPV}"
PE = "2"
S = "${WORKDIR}/git"
UBOOT_ENV_SUFFIX = "scr"
UBOOT_ENV = "boot"
UBOOT_FIXUP_BINARY = "fixup.scr"
EXTRA_OEMAKE += ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
EXTRA_OEMAKE_append_sun50i = " BL31=${DEPLOY_DIR_IMAGE}/bl31.bin "
SRC_URI += " \
file://patches-2018.11 \
"
do_compile_sun50i[depends] += "atf-sunxi:do_deploy"
do_configure_prepend() {
cd ${S}
${WORKDIR}/do_patch.sh ${WORKDIR}/patches-2018.11
}
do_compile_append() {
cp ${WORKDIR}/${SOC_FAMILY}-boot/boot.cmd ${WORKDIR}/boot.cmd
......@@ -45,11 +26,6 @@ do_compile_append() {
${B}/tools/mkimage -C none -A arm -T script -d ${WORKDIR}/fixup.cmd ${WORKDIR}/${UBOOT_FIXUP_BINARY}
}
do_configure_prepend() {
cd ${S}
${WORKDIR}/do_patch.sh ${WORKDIR}/patches-2018.11
}
do_deploy_append() {
# Copy also the fixup script to the deploy dir
install -m 644 ${WORKDIR}/${UBOOT_FIXUP_BINARY} ${DEPLOYDIR}/${UBOOT_FIXUP_BINARY}
......