Support XiZi_AIoT
This commit is contained in:
@@ -9,7 +9,7 @@ emulator_support +=
|
||||
support := $(riscv_support) $(arm_support) $(emulator_support)
|
||||
SRC_DIR :=
|
||||
|
||||
export BOARD ?=imx6q-sabrelite
|
||||
export BOARD ?= imx6q-sabrelite
|
||||
# This is the environment variable for kconfig-mconf
|
||||
export KCONFIG_CONFIG ?= .config
|
||||
|
||||
@@ -19,7 +19,6 @@ $(warning "This is what we support:")
|
||||
$(warning "RISCV EVB: $(riscv_support)")
|
||||
$(warning "ARM EVB: $(arm_support)")
|
||||
$(warning "EMULATORS: $(emulator_support)")
|
||||
# $(warning "$(support)")
|
||||
$(error "break" )
|
||||
endif
|
||||
|
||||
@@ -32,20 +31,18 @@ MAKEFILES =$(KERNEL_ROOT)/.config
|
||||
|
||||
export BSP_ROOT ?= $(KERNEL_ROOT)/services/boards/$(BOARD)
|
||||
export UBIQUITOUS_ROOT ?= ..
|
||||
include services/boards/$(BOARD)/config.mk
|
||||
export BSP_BUILD_DIR := boards/$(BOARD)
|
||||
include $(KERNEL_ROOT)/hardkernel/arch/arm/armv7-a/cortex-a9/preboot_for_nxp_imx6q_sabrelite/config.mk
|
||||
export BSP_BUILD_DIR := $(KERNEL_ROOT)
|
||||
export HOSTTOOLS_DIR ?= $(KERNEL_ROOT)/services/tools/hosttools
|
||||
export CONFIG2H_EXE ?= $(HOSTTOOLS_DIR)/xsconfig.sh
|
||||
|
||||
export CPPPATHS
|
||||
export SRC_APP_DIR := ../../APP_Framework
|
||||
export SRC_KERNEL_DIR := hardkernel services softkernel support testing
|
||||
# export SRC_DIR:= $(SRC_APP_DIR) $(SRC_KERNEL_DIR)
|
||||
export SRC_DIR:= $(SRC_KERNEL_DIR)
|
||||
export SRC_KERNEL_DIR := hardkernel kernel_actracer services softkernel testing
|
||||
export SRC_DIR := $(SRC_KERNEL_DIR)
|
||||
export LIBCC
|
||||
export MUSL_DIR := $(KERNEL_ROOT)/services/lib/musllib
|
||||
|
||||
PART:=
|
||||
PART :=
|
||||
|
||||
all:
|
||||
ifeq ($(CONFIG_COMPILER_APP)_$(CONFIG_COMPILER_KERNEL),y_)
|
||||
@@ -78,15 +75,6 @@ COMPILE_ALL:
|
||||
@$(MAKE) -C build TARGET=XiZi-$(BOARD).elf LINK_FLAGS=LFLAGS
|
||||
@rm build/Makefile build/make.obj
|
||||
|
||||
COMPILE_MUSL:
|
||||
@for dir in $(MUSL_DIR);do \
|
||||
$(MAKE) -C $$dir COMPILE_TYPE=$@ CONFIG_RESOURCES_LWIP=n; \
|
||||
done
|
||||
@cp link_libc.mk build/Makefile
|
||||
@$(MAKE) -C build TARGET=libmusl.a LINK_FLAGS=LFLAGS
|
||||
@cp build/libmusl.a $(KERNEL_ROOT)/lib/musllib/libmusl.a
|
||||
@rm build/Makefile build/make.obj
|
||||
|
||||
COMPILE_KERNEL:
|
||||
@for dir in $(SRC_KERNEL_DIR);do \
|
||||
$(MAKE) -C $$dir; \
|
||||
@@ -135,6 +123,12 @@ clean:
|
||||
@echo Clean target and build_dir
|
||||
@rm -rf build
|
||||
@rm -rf temp.txt
|
||||
@rm -rf services/boards/imx6q-sabrelite/*.o
|
||||
@rm -rf services/boards/imx6q-sabrelite/*.asm
|
||||
@rm -rf services/boards/imx6q-sabrelite/bin
|
||||
@rm -rf services/tools/mkfs/mkfs
|
||||
@rm -rf services/boards/imx6q-sabrelite/fs.img
|
||||
@rm -rf services/boards/imx6q-sabrelite/user.map
|
||||
|
||||
distclean:
|
||||
@echo Clean all configuration
|
||||
|
||||
Reference in New Issue
Block a user