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