diff options
author | Yan <yanxk.fnst@fujitsu.com> | 2023-10-08 08:31:16 +0800 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-10-16 11:46:17 +0000 |
commit | d9670d5543f8a9444ab01d39ad8a95bc1aee3df3 (patch) | |
tree | 5427b245d2cbbd453f43eb44b949a8a520ac06d9 /meta-agl-wireless-monitor/recipes-component/libcgic/files/0001-modify-makefile-for-cross-build.patch | |
parent | 0bd14b0af2f8e6751c39899cf8f9fe42e1960b39 (diff) |
agl-wireless-monitor: add libcgic
cgic library is now added, test cgi deployed onto board.
this library would play a build time dependency role later on.
Bug-AGL: SPEC-4838
Signed-off-by: Yan <yanxk.fnst@fujitsu.com>
Change-Id: I16d67e2bacabb12bd36f2c439eeee91ef786e7c5
Diffstat (limited to 'meta-agl-wireless-monitor/recipes-component/libcgic/files/0001-modify-makefile-for-cross-build.patch')
-rw-r--r-- | meta-agl-wireless-monitor/recipes-component/libcgic/files/0001-modify-makefile-for-cross-build.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-agl-wireless-monitor/recipes-component/libcgic/files/0001-modify-makefile-for-cross-build.patch b/meta-agl-wireless-monitor/recipes-component/libcgic/files/0001-modify-makefile-for-cross-build.patch new file mode 100644 index 00000000..a88d69da --- /dev/null +++ b/meta-agl-wireless-monitor/recipes-component/libcgic/files/0001-modify-makefile-for-cross-build.patch @@ -0,0 +1,47 @@ +From b1ad0a4560ff3fecc45bf54c64688ffa6a43c714 Mon Sep 17 00:00:00 2001 +From: Yan <yanxk.fnst@fujitsu.com> +Date: Fri, 6 Oct 2023 14:03:50 +0800 +Subject: [PATCH] modify makefile for cross build + +remove static cc ar ranlib +add cflag and ldflag to build command + +Upstream Status: Pending +Signed-off-by: Yan <yanxk.fnst@fujitsu.com> +--- + Makefile | 9 +++------ + 1 file changed, 3 insertions(+), 6 deletions(-) + +diff --git a/Makefile b/Makefile +index 8be64c3..4659342 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,4 @@ + CFLAGS=-g -Wall +-CC=gcc +-AR=ar +-RANLIB=ranlib + LIBS=-L./ -lcgic + + all: libcgic.a cgictest.cgi capture +@@ -19,14 +16,14 @@ libcgic.a: cgic.o cgic.h + #mingw32 and cygwin users: replace .cgi with .exe + + cgictest.cgi: cgictest.o libcgic.a +- gcc cgictest.o -o cgictest.cgi ${LIBS} ++ $(CC) $(CFLAGS) $(LDFLAGS) cgictest.o -o cgictest.cgi ${LIBS} + + capture: capture.o libcgic.a +- gcc capture.o -o capture ${LIBS} ++ $(CC) $(CFLAGS) $(LDFLAGS) capture.o -o capture ${LIBS} + + clean: + rm -f *.o *.a cgictest.cgi capture cgicunittest + + test: +- gcc -D UNIT_TEST=1 cgic.c -o cgicunittest ++ $(CC) -D UNIT_TEST=1 cgic.c -o cgicunittest + ./cgicunittest +-- +2.25.1 + |