diff options
author | Chunrong Guo <chunrong.guo@nxp.com> | 2019-08-14 11:17:16 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-09-04 18:33:08 -0300 |
commit | 862bafc6e4faf75eceafbee4c1f4be4df5b06e49 (patch) | |
tree | 7e9c5e4c7c7dc9700ef0d1a7b8a79527b4802bca /recipes-kernel/ceetm/ceetm_git.bb | |
parent | c13fb0aa3cc8bb9d3aa8f6649e79c8443256bf23 (diff) | |
download | meta-freescale-862bafc6e4faf75eceafbee4c1f4be4df5b06e49.tar.gz |
ceetm: fix the building warning
*fix the below warning
|#warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
*add 0001-Makefile-update-CFLAGS.patch to avoid build Errors.
*remove do_compile_prepend
*Obey LDFLAGS and CFLAGS in Makefile
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Diffstat (limited to 'recipes-kernel/ceetm/ceetm_git.bb')
-rw-r--r-- | recipes-kernel/ceetm/ceetm_git.bb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/recipes-kernel/ceetm/ceetm_git.bb b/recipes-kernel/ceetm/ceetm_git.bb index 8613e507..68fb67e0 100644 --- a/recipes-kernel/ceetm/ceetm_git.bb +++ b/recipes-kernel/ceetm/ceetm_git.bb | |||
@@ -4,16 +4,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=bac620b9883d38a84dfb73ca7122d915" | |||
4 | 4 | ||
5 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ceetm;nobranch=1" | 5 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ceetm;nobranch=1" |
6 | SRCREV = "6a7f2ec2091df2f4380cb8d25a36c399aed5af1b" | 6 | SRCREV = "6a7f2ec2091df2f4380cb8d25a36c399aed5af1b" |
7 | 7 | SRC_URI_append = " file://0001-Makefile-update-CFLAGS.patch \ | |
8 | " | ||
8 | DEPENDS = "iproute2" | 9 | DEPENDS = "iproute2" |
9 | 10 | ||
10 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
11 | 12 | ||
12 | EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}" IPROUTE2_DIR="{STAGING_DIR_TARGET}"' | 13 | export IPROUTE2_DIR="${STAGING_DIR_TARGET}" |
14 | WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" | ||
15 | export CROSS_COMPILE="${WRAP_TARGET_PREFIX}" | ||
13 | 16 | ||
14 | do_compile_prepend () { | 17 | LDFLAGS += "${TOOLCHAIN_OPTIONS}" |
15 | cp ${RECIPE_SYSROOT}/usr/include/include/json_print.h ${RECIPE_SYSROOT}/usr/include | ||
16 | } | ||
17 | 18 | ||
18 | do_install(){ | 19 | do_install(){ |
19 | mkdir -p ${D}/${libdir}/tc | 20 | mkdir -p ${D}/${libdir}/tc |