[meta-freescale] [meta-fsl-ppc dizzy][PATCH 2/2] skmm-ep: adjust the LIBEDIT_CFLAGS and LIBEDIT_LDFLAGS to fix build issue
Zhenhua Luo
zhenhua.luo at freescale.com
Wed Oct 14 04:13:05 PDT 2015
Fix the following build error:
| [CC] process.c (lib:skmm_process)
| apps/pciep_dma/pciep_dma.c:37:37: fatal error: readline.h: No such file or directory
| #include <readline.h> /* libedit */
| ^
| compilation terminated.
Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
recipes-extended/skmm-ep/skmm-ep_git.bb | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/recipes-extended/skmm-ep/skmm-ep_git.bb b/recipes-extended/skmm-ep/skmm-ep_git.bb
index fcbd2ed..4fdba3f 100644
--- a/recipes-extended/skmm-ep/skmm-ep_git.bb
+++ b/recipes-extended/skmm-ep/skmm-ep_git.bb
@@ -16,16 +16,12 @@ COMPATIBLE_MACHINE = "(p4080ds|t4240qds|c293pcie)"
S = "${WORKDIR}/git"
-EXTRA_OEMAKE = 'MACHINE=${MACHINE}'
+LIBEDIT_CFLAGS = "$(pkg-config --cflags libedit)"
+LIBEDIT_LDFLAGS = "$(pkg-config --libs --static libedit)"
-export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)"
-export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)"
-
-do_compile () {
- export ARCH=${TARGET_ARCH}
- oe_runmake
-}
+EXTRA_OEMAKE = 'ARCH=${TARGET_ARCH} MACHINE=${MACHINE} LIBEDIT_CFLAGS=${LIBEDIT_CFLAGS} \
+ LIBEDIT_LDFLAGS=${LIBEDIT_LDFLAGS} V=1'
do_install () {
- oe_runmake ARCH=${TARGET_ARCH} install DESTDIR=${D}
+ oe_runmake install DESTDIR=${D}
}
--
2.4.3
More information about the meta-freescale
mailing list