diff options
Diffstat (limited to 'dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc')
| -rw-r--r-- | dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc new file mode 100644 index 000000000..f279544ed --- /dev/null +++ b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 2 | DEPENDS = "gcc-arm-none-eabi-native" | ||
| 3 | |||
| 4 | S = "${WORKDIR}/git" | ||
| 5 | |||
| 6 | inherit deploy | ||
| 7 | |||
| 8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 9 | |||
| 10 | OEI_CONFIGS ?= "UNDEFINED" | ||
| 11 | OEI_CORE ?= "UNDEFINED" | ||
| 12 | OEI_SOC ?= "UNDEFINED" | ||
| 13 | OEI_BOARD ?= "UNDEFINED" | ||
| 14 | OEI_DDRCONFIG ?= "" | ||
| 15 | |||
| 16 | LDFLAGS[unexport] = "1" | ||
| 17 | |||
| 18 | EXTRA_OEMAKE = "\ | ||
| 19 | board=${OEI_BOARD} \ | ||
| 20 | DEBUG=1 \ | ||
| 21 | OEI_CROSS_COMPILE=arm-none-eabi-" | ||
| 22 | |||
| 23 | EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" | ||
| 24 | EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}" | ||
| 25 | |||
| 26 | do_configure() { | ||
| 27 | for oei_config in ${OEI_CONFIGS}; do | ||
| 28 | oe_runmake clean oei=$oei_config | ||
| 29 | done | ||
| 30 | } | ||
| 31 | |||
| 32 | do_compile() { | ||
| 33 | for oei_config in ${OEI_CONFIGS}; do | ||
| 34 | oe_runmake oei=$oei_config | ||
| 35 | done | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install() { | ||
| 39 | install -d ${D}/firmware | ||
| 40 | for oei_config in ${OEI_CONFIGS}; do | ||
| 41 | install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware | ||
| 42 | done | ||
| 43 | } | ||
| 44 | |||
| 45 | addtask deploy after do_install | ||
| 46 | do_deploy() { | ||
| 47 | cp -rf ${D}/firmware/* ${DEPLOYDIR}/ | ||
| 48 | } | ||
| 49 | |||
| 50 | FILES:${PN} = "/firmware" | ||
| 51 | SYSROOT_DIRS += "/firmware" | ||
| 52 | |||
| 53 | PROVIDES += "virtual/imx-oei" | ||
| 54 | |||
| 55 | COMPATIBLE_MACHINE = "(mx95-generic-bsp)" | ||
