1
1
FILESEXTRAPATHS :prepend := "${THISDIR} /${PN} :"
2
2
3
+ SRC_URI :append :portenta -x8 = " \
4
+ file://Makefile \
5
+ file://imx8mm_evk_defconfig \
6
+ file://imx8mm-evk.dts \
7
+ file://imx8mm-evk.dtsi \
8
+ file://imx8mm-evk-u-boot.dtsi \
9
+ file://imx8mm_evk.h \
10
+ file://imx8mm_evk.c \
11
+ file://spl.c \
12
+ file://lpddr4_timing.c \
13
+ "
14
+
15
+ do_override_files_portenta_x8 () {
16
+ bbwarn Overriding files for ${MACHINE}
17
+
18
+ # Override Makefile
19
+ cp ${WORKDIR} /Makefile ${S} /arch /arm /dts /Makefile
20
+
21
+ # @TODO: inspect UBOOT_CONFIG_BASENAME for defconfig in use
22
+ cp ${WORKDIR} /imx8mm_evk_defconfig ${S} /configs /imx8mm_evk_defconfig
23
+
24
+ cp ${WORKDIR} /imx8mm -evk . dts ${S} /arch /arm /dts /imx8mm -evk . dts
25
+ cp ${WORKDIR} /imx8mm -evk . dtsi ${S} /arch /arm /dts /imx8mm -evk . dtsi
26
+
27
+ # @TODO: u-boot auto-includes the *-u-boot.dtsi prepending MACHINE to the board devicetree
28
+ # see scripts/Makefile.lib, so should never be included directly from board devicetree
29
+ cp ${WORKDIR} /imx8mm -evk -u -boot . dtsi ${S} /arch /arm /dts /imx8mm -evk -u -boot . dtsi
30
+
31
+ cp ${WORKDIR} /imx8mm_evk . c ${S} /board /freescale /imx8mm_evk /imx8mm_evk . c
32
+ cp ${WORKDIR} /lpddr4_timing . c ${S} /board /freescale /imx8mm_evk /lpddr4_timing . c
33
+ cp ${WORKDIR} /spl . c ${S} /board /freescale /imx8mm_evk /spl . c
34
+
35
+ cp ${WORKDIR} /imx8mm_evk . h ${S} /include /configs /imx8mm_evk . h
36
+ }
37
+
3
38
SRC_URI :append :portenta -x8 = " \
4
39
file://board/anx7625.c \
5
40
file://board/anx7625.h \
@@ -91,7 +126,8 @@ SRC_URI:append:imx8mp-astrial = " \
91
126
"
92
127
93
128
do_override_files_imx8mp_astrial () {
94
- bbwarn Overriding files for imx8mp -evk
129
+ bbwarn Overriding files for ${MACHINE}
130
+
95
131
# Override Makefile
96
132
cp ${WORKDIR} /Makefile ${S} /arch /arm /dts /Makefile
97
133
@@ -117,7 +153,7 @@ do_override_files_imx8mp_astrial () {
117
153
118
154
python () {
119
155
if d . getVar ('MACHINE' ) == 'portenta-x8' :
120
- bb . build . addtask ('do_create_machine_portenta_x8 ' , 'do_configure' , 'do_patch' , d )
156
+ bb . build . addtask ('do_override_files_portenta_x8 ' , 'do_configure' , 'do_patch' , d )
121
157
elif d . getVar ('MACHINE' ) == 'portenta-x9' :
122
158
bb . build . addtask ('do_override_files_portenta_x9' , 'do_configure' , 'do_patch' , d )
123
159
elif d . getVar ('MACHINE' ) == 'imx8mp-astrial' :
0 commit comments