summaryrefslogtreecommitdiffstats
path: root/recipes-extended/ipc-ust
diff options
context:
space:
mode:
authorTing Liu <ting.liu@nxp.com>2016-08-12 18:43:56 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2016-08-12 11:43:43 -0300
commit9996c6ec9c14311aefd2e20cbdd3ceac1516cca9 (patch)
tree2095036264d729815bed0b5ef4f90fc90351798e /recipes-extended/ipc-ust
parent8a851328e77a8fc8e22b38facdaaf2694a79ee94 (diff)
downloadmeta-freescale-9996c6ec9c14311aefd2e20cbdd3ceac1516cca9.tar.gz
ipc-ust: obey LDFLAGS to fix GNU_HASH error
Signed-off-by: Ting Liu <ting.liu@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-extended/ipc-ust')
-rw-r--r--recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch86
-rw-r--r--recipes-extended/ipc-ust/ipc-ust_git.bb4
2 files changed, 89 insertions, 1 deletions
diff --git a/recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch b/recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch
new file mode 100644
index 00000000..e991f70a
--- /dev/null
+++ b/recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch
@@ -0,0 +1,86 @@
1From 4c0accfce78610e21f5d9b75725a0b9fa2c6cfb9 Mon Sep 17 00:00:00 2001
2From: Ting Liu <ting.liu@nxp.com>
3Date: Fri, 12 Aug 2016 10:41:51 +0800
4Subject: [PATCH] Makefile: use LDFLAGS if set
5
6Signed-off-by: Ting Liu <ting.liu@nxp.com>
7---
8 dsp_boot/Makefile | 6 +++---
9 fsl_shm/Makefile | 4 ++--
10 ipc/Makefile | 14 +++++++-------
11 3 files changed, 12 insertions(+), 12 deletions(-)
12
13diff --git a/dsp_boot/Makefile b/dsp_boot/Makefile
14index 8f30076..59eb648 100644
15--- a/dsp_boot/Makefile
16+++ b/dsp_boot/Makefile
17@@ -20,12 +20,12 @@ endif
18 all: fsl_shm lib_dsp_boot dsp_bt
19 lib_dsp_boot:
20 $(CC) -c ./libdspboot.c $(CFLAGS) -o ./libdspboot.o
21- $(CC) -shared -fPIC ./libdspboot.o -o libdspboot.so
22+ $(CC) -shared -fPIC $(LDFLAGS) ./libdspboot.o -o libdspboot.so
23 $(AR) rcs libdspboot.a ./libdspboot.o ../fsl_shm/lib/lg_shm.o
24 fsl_shm:
25- $(CC) -c $(CFLAGS) $(SOURCES_FSL_SHM)
26+ $(CC) -c $(CFLAGS) $(LDFLAGS) $(SOURCES_FSL_SHM)
27 dsp_bt:
28- $(CC) $(CFLAGS) $(SOURCES) $(SOURCES_FSL_SHM) -L. -ldspboot -L../ipc -lipc -o $@
29+ $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCES) $(SOURCES_FSL_SHM) -L. -ldspboot -L../ipc -lipc -o $@
30 cp libdspboot.so ../ipc/ -v
31 clean:
32 rm -rf *.o dsp_bt libdspboot.so *.a
33diff --git a/fsl_shm/Makefile b/fsl_shm/Makefile
34index 0042055..0b9f581 100644
35--- a/fsl_shm/Makefile
36+++ b/fsl_shm/Makefile
37@@ -4,11 +4,11 @@ CFLAGS=-fPIC -I ./lib -I ./include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -W
38
39 all: lg_shm_lib lg_shm_test
40 lg_shm_lib:
41- $(CC) -c ./lib/lg_shm.c $(CFLAGS) -o ./lib/lg_shm.o
42+ $(CC) -c ./lib/lg_shm.c $(CFLAGS) $(LDFLAGS) -o ./lib/lg_shm.o
43 $(AR) rcs liblg_shm.a ./lib/lg_shm.o
44
45 lg_shm_test:
46- $(CC) ./test/app.c $(CFLAGS) -L. -llg_shm -o app
47+ $(CC) ./test/app.c $(CFLAGS) $(LDFLAGS) -L. -llg_shm -o app
48
49 clean:
50 rm -rf app ./lib/*.o *.a
51diff --git a/ipc/Makefile b/ipc/Makefile
52index 06599f6..cbb63d6 100644
53--- a/ipc/Makefile
54+++ b/ipc/Makefile
55@@ -29,21 +29,21 @@ ipc_lib:
56 $(CC) -c ./lib/fsl_user_dma.c $(CFLAGS) -o ./lib/fsl_user_dma.o
57 $(CC) -c ./lib/fsl_ipc_lock.c $(CFLAGS) -o ./lib/fsl_ipc_lock.o
58 $(CC) -c ../dsp_boot/libdspboot.c $(CFLAGS2) -o ../dsp_boot/libdspboot.o
59- $(CC) -shared -fPIC -lpthread ./lib/fsl_user_dma.o ./lib/fsl_ipc_channel.o ./lib/fsl_ipc_lock.o ../dsp_boot/libdspboot.o -L../fsl_shm -llg_shm -o libipc.so
60+ $(CC) -shared -fPIC -lpthread $(LDFLAGS) ./lib/fsl_user_dma.o ./lib/fsl_ipc_channel.o ./lib/fsl_ipc_lock.o ../dsp_boot/libdspboot.o -L../fsl_shm -llg_shm -o libipc.so
61 $(AR) rcs libipc.a ./lib/fsl_ipc_channel.o ./lib/fsl_ipc_lock.o ../dsp_boot/libdspboot.o ./lib/fsl_user_dma.o ../fsl_shm/lib/lg_shm.o
62
63 mem_lib:
64 $(CC) -c ./lib/fsl_usmmgr.c $(CFLAGS) -o ./lib/fsl_usmmgr.o
65 $(CC) -c ./lib/fsl_ipc_lock.c $(CFLAGS) -o ./lib/fsl_ipc_lock.o
66- $(CC) -shared -fPIC ./lib/fsl_usmmgr.o ./lib/fsl_ipc_lock.o -L../fsl_shm -llg_shm -o libmem.so
67+ $(CC) -shared -fPIC $(LDFLAGS) ./lib/fsl_usmmgr.o ./lib/fsl_ipc_lock.o -L../fsl_shm -llg_shm -o libmem.so
68 $(AR) rcs libmem.a ./lib/fsl_usmmgr.o ./lib/fsl_ipc_lock.o ../fsl_shm/lib/lg_shm.o
69
70 ipc_test:
71- $(CC) ./test/ipc_test.c $(CFLAGS) -L. -lipc -lmem -o ipc_test
72- $(CC) ./test/ipc_test67.c $(CFLAGS) -L. -lipc -lmem -o ipc_test67
73- $(CC) ./test/dsp_recover.c $(CFLAGS) -L. -lipc -lmem -o dsp_recover
74- $(CC) ./test/l1_defense_app.c $(CFLAGS) -L. -lipc -lmem -o l1d_app
75- $(CC) ./test/fsl_dump_memory.c $(CFLAGS) -L. -lipc -lmem -o dump_mem
76+ $(CC) ./test/ipc_test.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o ipc_test
77+ $(CC) ./test/ipc_test67.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o ipc_test67
78+ $(CC) ./test/dsp_recover.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o dsp_recover
79+ $(CC) ./test/l1_defense_app.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o l1d_app
80+ $(CC) ./test/fsl_dump_memory.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o dump_mem
81
82 clean:
83 rm -rf dump_mem ipc_test ipc_test67 dsp_recover l1d_app ./lib/*.o *.a *.so
84--
851.9.2
86
diff --git a/recipes-extended/ipc-ust/ipc-ust_git.bb b/recipes-extended/ipc-ust/ipc-ust_git.bb
index c2f30e8e..6e788e7c 100644
--- a/recipes-extended/ipc-ust/ipc-ust_git.bb
+++ b/recipes-extended/ipc-ust/ipc-ust_git.bb
@@ -3,7 +3,9 @@ DESCRIPTION = "DSP boot application and ipc test application"
3LICENSE = "BSD" 3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10" 4LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
5 5
6SRC_URI = "git://git.freescale.com/ppc/sdk/ipc.git;branch=sdk-v2.0.x" 6SRC_URI = "git://git.freescale.com/ppc/sdk/ipc.git;branch=sdk-v2.0.x \
7 file://Makefile-use-LDFLAGS-if-set.patch \
8"
7SRCREV = "74d662707558290f070f9589177db730444bc435" 9SRCREV = "74d662707558290f070f9589177db730444bc435"
8 10
9S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"