mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
build: Move .config check to the top Makefile
remove the workaround to handle the inexistence of .config/Make.defs Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
3c622db780
commit
1a95cce1a3
@@ -41,9 +41,18 @@
|
||||
# make -f tools/Makefile.win
|
||||
#
|
||||
|
||||
-include .config
|
||||
ifeq ($(wildcard .config),)
|
||||
.DEFAULT:
|
||||
@echo "Nuttx has not been configured:"
|
||||
@echo " tools/configure.sh <target>"
|
||||
|
||||
clean distclean:
|
||||
@:
|
||||
else
|
||||
include .config
|
||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
include tools/Makefile.win
|
||||
else
|
||||
include tools/Makefile.unix
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip$(DELIM)Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip$(DELIM)Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_ARMV7A),y) # ARMv7-A
|
||||
ARCH_SUBDIR = armv7-a
|
||||
|
||||
@@ -196,4 +196,4 @@ CHIP_CSRCS += lpc43_usb0dev.c
|
||||
endif
|
||||
endif
|
||||
|
||||
-include chip/spifi/src/Make.defs
|
||||
include chip/spifi/src/Make.defs
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_FAMILY_AVR32),y)
|
||||
ARCH_SUBDIR = avr32
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_HC12),y)
|
||||
ARCH_SUBDIR = hc12
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_MIPS),y)
|
||||
ARCH_SUBDIR = mips32
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_CHIP_LM32),y)
|
||||
ARCH_SUBDIR = lm32
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip$(DELIM)Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip$(DELIM)Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_MOR1KX),y) # OpenRISC mor1kx
|
||||
ARCH_SUBDIR = mor1kx
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
CPPFLAGS += $(EXTRAFLAGS)
|
||||
CFLAGS += $(EXTRAFLAGS)
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
||||
CPPFLAGS += -I$(ARCH_SRCDIR)/chip -I$(TOPDIR)/sched $(EXTRAFLAGS)
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_I486),y)
|
||||
ARCH_SUBDIR = i486
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_INTEL64),y)
|
||||
ARCH_SUBDIR = intel64
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_FAMILY_LX6),y)
|
||||
ARCH_SUBDIR = lx6
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
COMPILER = ${shell basename "$(CC)"}
|
||||
ARCHSRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
|
||||
# Makefile fragments
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
-include board/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
include chip/Make.defs
|
||||
include board/Make.defs
|
||||
|
||||
# Compiler-Dependent Make: SDCC or ZiLOG ZDS-II
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)\Make.defs
|
||||
include $(TOPDIR)\Make.defs
|
||||
|
||||
############################################################################
|
||||
# Tools
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)\Make.defs
|
||||
include $(TOPDIR)\Make.defs
|
||||
|
||||
# Tools
|
||||
|
||||
|
||||
+1
-2
@@ -33,8 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
DELIM ?= $(strip /)
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
DEPPATH = --dep-path .
|
||||
ASRCS =
|
||||
|
||||
+1
-2
@@ -34,8 +34,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
DELIM ?= $(strip /)
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
# Basic BINFMT source files
|
||||
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ifneq ($(RCSRCS)$(RCRAWS),)
|
||||
ETCDIR := etctmp
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
# Determine if there is a Kconfig file for any custom board configuration
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = a1x_boot.c a1x_bringup.c a1x_leds.c
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = am335x_boot.c am335x_bringup.c am335x_leds.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = c5471_leds.c
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
include board$(DELIM)Make.defs
|
||||
include src$(DELIM)Make.defs
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = dm320_leds.c dm320_network.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = efm32_boot.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = efm32_boot.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = efm32_boot.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = imx_boardinit.c imx_bringup.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = imxrt_flexspi_nor_flash.c imxrt_boot.c imxrt_flexspi_nor_boot.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
# This is the directory for the board-specific header files
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = imxrt_boot.c imxrt_flexspi_nor_boot.c imxrt_flexspi_nor_flash.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
# This is the directory for the board-specific header files
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = imxrt_boot.c imxrt_flexspi_nor_boot.c imxrt_flexspi_nor_flash.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = k28_boot.c k28_bringup.c k28_spi.c k28_i2c.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = k64_boot.c k64_spi.c
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = k66_boot.c k66_spi.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = k40_boot.c k40_lcd.c k40_spi.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = k20_boot.c k20_spi.c k20_i2c.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = k60_boot.c k60_spi.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
#CSRCS = k64_boot.c k64_spi.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = kl_boardinitialize.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = kl_boardinitialize.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = kl_boardinitialize.c
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
# This is the directory for the board-specific header files
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = lc823450_boot.c lc823450_mux.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = lpc17_40_boot.c lpc17_40_leds.c
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
# This is the directory for the board-specific header files
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = lpc17_40_boardinitialize.c lpc17_40_bringup.c lpc17_40_ssp.c
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user