diff options
Diffstat (limited to 'recipes-bsp/imx-atf')
-rw-r--r-- | recipes-bsp/imx-atf/imx-atf_2.6.bb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/recipes-bsp/imx-atf/imx-atf_2.6.bb b/recipes-bsp/imx-atf/imx-atf_2.6.bb index b0cd4d3d..194ef935 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.6.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.6.bb | |||
@@ -18,9 +18,11 @@ S = "${WORKDIR}/git" | |||
18 | 18 | ||
19 | inherit deploy | 19 | inherit deploy |
20 | 20 | ||
21 | BOOT_TOOLS = "imx-boot-tools" | 21 | ATF_PLATFORM ??= "INVALID" |
22 | 22 | ||
23 | ATF_PLATFORM ??= "INVALID" | 23 | # FIXME: We should return INVALID here but currently only i.MX8M has support to override the UART |
24 | # base address in source code. | ||
25 | ATF_BOOT_UART_BASE ?= "" | ||
24 | 26 | ||
25 | EXTRA_OEMAKE += " \ | 27 | EXTRA_OEMAKE += " \ |
26 | CROSS_COMPILE="${TARGET_PREFIX}" \ | 28 | CROSS_COMPILE="${TARGET_PREFIX}" \ |
@@ -34,7 +36,8 @@ AS[unexport] = "1" | |||
34 | LD[unexport] = "1" | 36 | LD[unexport] = "1" |
35 | 37 | ||
36 | # Baremetal, just need a compiler | 38 | # Baremetal, just need a compiler |
37 | DEPENDS:remove = "virtual/${TARGET_PREFIX}compilerlibs virtual/libc" | 39 | INHIBIT_DEFAULT_DEPS = "1" |
40 | DEPENDS = "virtual/${HOST_PREFIX}gcc" | ||
38 | 41 | ||
39 | BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" | 42 | BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" |
40 | 43 | ||
@@ -49,6 +52,11 @@ EXTRA_OEMAKE += 'LD="${@remove_options_tail(d.getVar('LD'))}"' | |||
49 | 52 | ||
50 | EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"' | 53 | EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"' |
51 | 54 | ||
55 | # Set the UART to use during the boot. | ||
56 | EXTRA_OEMAKE += 'IMX_BOOT_UART_BASE=${ATF_BOOT_UART_BASE}' | ||
57 | |||
58 | do_configure[noexec] = "1" | ||
59 | |||
52 | do_compile() { | 60 | do_compile() { |
53 | # Clear LDFLAGS to avoid the option -Wl recognize issue | 61 | # Clear LDFLAGS to avoid the option -Wl recognize issue |
54 | oe_runmake bl31 | 62 | oe_runmake bl31 |
@@ -68,5 +76,5 @@ do_deploy() { | |||
68 | } | 76 | } |
69 | addtask deploy after do_compile | 77 | addtask deploy after do_compile |
70 | 78 | ||
71 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 79 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
72 | COMPATIBLE_MACHINE = "(mx8-generic-bsp)" | 80 | COMPATIBLE_MACHINE = "(mx8-generic-bsp)" |