21 lines
548 B
Makefile
Executable File
21 lines
548 B
Makefile
Executable File
LOCAL_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
export SDK_DIR?=$(realpath $(LOCAL_PATH)/../..)
|
|
|
|
|
|
# not run in the top makefile
|
|
ifeq (,$(TARGET_CONFIG_NIMI))
|
|
ENV_FILE := $(SDK_DIR)/output/.config
|
|
ifeq (,$(wildcard $(ENV_FILE)))
|
|
$(error "$(ENV_FILE) does not exist!build the kernel firstly!!")
|
|
endif
|
|
include $(ENV_FILE)
|
|
endif
|
|
|
|
export CC:=$(CROSS)gcc
|
|
export AR:=$(CROSS)ar
|
|
export STRIP :=$(CROSS)strip --strip-debug
|
|
|
|
REL_DIR:=$(SDK_DIR)/output/$(TARGET_OUTPUT_DIR)
|
|
export BSP_TEST_OUT_DIR := $(REL_DIR)/bsp/test
|