From 1fc63aca11ea45346022b9efbcb2916fb854e34d Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 19 Aug 2024 10:14:00 +0800
Subject: [PATCH] update third party build shell script for cross compiler and LingYun source code
---
booster/test/makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/booster/test/makefile b/booster/test/makefile
index 28a476f..43a40ee 100644
--- a/booster/test/makefile
+++ b/booster/test/makefile
@@ -1,6 +1,8 @@
PWD=$(shell pwd)
+INST_PATH=/tftp
+
LIB_PATH=$(shell dirname ${PWD} )
LIB_NAME=$(shell basename ${LIB_PATH} )
@@ -11,6 +13,7 @@
BINARIES=$(SRCFILES:%.c=%)
all: libs binaries
+ @make install
libs:
make -C ${LIB_PATH}
@@ -19,7 +22,10 @@
@echo " Compile over"
%: %.c
- $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+ ${CROSSTOOL}gcc $(CFLAGS) -o $@ $< $(LDFLAGS)
+
+install:
+ cp ${BINARIES} ${INST_PATH}
clean:
@rm -f ${BINARIES}
@@ -27,4 +33,5 @@
distclean:
@make clean
+ @make clean -C ${LIB_PATH}
@rm -f cscope.* tags
--
Gitblit v1.9.1