-
Notifications
You must be signed in to change notification settings - Fork 1
/
u-boot-nanopi-m4.inc
39 lines (33 loc) · 1.09 KB
/
u-boot-nanopi-m4.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require recipes-bsp/u-boot/u-boot.inc
DESCRIPTION = "Nanopi-M4 U-Boot"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
DEPENDS = "dtc-native bc-native swig-native python3-native lzop-native bison-native"
PACKAGE_ARCH = "${MACHINE_ARCH}"
PARALLEL_MAKE = ""
# u-boot will build native python module
inherit pythonnative
HOST_EXTRACFLAGS += "-I${STAGING_INCDIR_NATIVE}"
EXTRA_OEMAKE += ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
do_configure () {
if [ -z "${UBOOT_CONFIG}" ]; then
if [ -n "${UBOOT_MACHINE}" ]; then
oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
else
oe_runmake -C ${S} O=${B} oldconfig
fi
echo ${PWD}
${S}/scripts/kconfig/merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
cml1_do_configure
fi
}
do_compile_prepend () {
export STAGING_INCDIR=${STAGING_INCDIR_NATIVE};
export STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE};
}
do_compile_append () {
# copy to default search path
if [ ${SPL_BINARY} ]; then
cp ${B}/spl/${SPL_BINARY} ${B}/
fi
}