17 lines
874 B
Makefile
17 lines
874 B
Makefile
|
# Makefile for vm tools
|
||
|
#
|
||
|
buildconfig = ../../../../.buildconfig
|
||
|
ifeq ($(buildconfig), $(wildcard $(buildconfig)))
|
||
|
LICHEE_TOOLCHAIN_PATH=$(shell cat $(buildconfig) | grep -w "LICHEE_TOOLCHAIN_PATH" | awk -F= '{printf $$2}')
|
||
|
LICHEE_PLAT_OUT=$(shell cat $(buildconfig) | grep -w "LICHEE_PLAT_OUT" | awk -F= '{printf $$2}')
|
||
|
LICHEE_CROSS_COMPILER=$(shell cat $(buildconfig) | grep -w "LICHEE_CROSS_COMPILER" | awk -F= '{printf $$2}')
|
||
|
export LICHEE_BUSSINESS LICHEE_CHIP_CONFIG_DIR LICHEE_IC
|
||
|
endif
|
||
|
|
||
|
TINA_DIR:=$(SRCTREE)/../../../..
|
||
|
#CC=$(TINA_DIR)/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-gcc-6.4.1
|
||
|
#AR=$(TINA_DIR)/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-gcc-ar
|
||
|
|
||
|
CC=$(LICHEE_TOOLCHAIN_PATH)/bin/$(LICHEE_CROSS_COMPILER)-gcc
|
||
|
CC := $(CROSS_COMPILE)gcc
|