blob: 2b2b62c9eb07e6289c860439ad6b2877cfb5591e [file] [log] [blame]
Brad Bishopd7189fd2018-02-01 10:27:11 -05001require u-boot-common_${PV}.inc
2
3SRC_URI += "file://default-gcc.patch"
Brad Bishop5441d082018-03-23 17:24:31 -04004SRC_URI += "file://fw_env.config"
5SRC_URI += "file://alt_fw_env.config"
Brad Bishopd7189fd2018-02-01 10:27:11 -05006
Brad Bishopce4166d2018-02-08 15:23:05 -05007SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
8DEPENDS = "mtd-utils"
9
Brad Bishopce4166d2018-02-08 15:23:05 -050010INSANE_SKIP_${PN} = "already-stripped"
Brad Bishopd7189fd2018-02-01 10:27:11 -050011EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
Brad Bishopce4166d2018-02-08 15:23:05 -050012EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
13
14inherit uboot-config
15
16do_compile () {
17 oe_runmake ${UBOOT_MACHINE}
18 oe_runmake env
19}
20
21do_install () {
22 install -d ${D}${base_sbindir}
Brad Bishopce4166d2018-02-08 15:23:05 -050023 install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
24 install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
Brad Bishop5441d082018-03-23 17:24:31 -040025
26 install -d ${D}${sysconfdir}
27 install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
28 install -m 644 ${WORKDIR}/alt_fw_env.config ${D}${sysconfdir}/alt_fw_env.config
Brad Bishopce4166d2018-02-08 15:23:05 -050029}
30
31do_install_class-cross () {
32 install -d ${D}${bindir_cross}
33 install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
34 install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
35}
36
37SYSROOT_DIRS_append_class-cross = " ${bindir_cross}"
38
39PACKAGE_ARCH = "${MACHINE_ARCH}"
40BBCLASSEXTEND = "cross"
Brad Bishop0d3988e2018-03-23 15:28:16 -040041
42RDEPENDS_${PN} = "udev-aspeed-mtd-partitions"