Skip to content

Commit

Permalink
build: Remove the workaround for the inexistence of .config/Make.defs
Browse files Browse the repository at this point in the history
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 authored and Ouss4 committed May 21, 2020
1 parent b64d353 commit ead498a
Show file tree
Hide file tree
Showing 307 changed files with 308 additions and 354 deletions.
2 changes: 1 addition & 1 deletion Directory.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

# Sub-directories
Expand Down
2 changes: 0 additions & 2 deletions Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#
############################################################################

DELIM ?= $(strip /)

# Application Directories

# BUILDIRS is the list of top-level directories containing Make.defs files
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

APPDIR = $(CURDIR)
TOPDIR ?= $(APPDIR)/import
-include $(TOPDIR)/Make.defs
-include $(APPDIR)/Make.defs
include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

# The GNU make CURDIR will always be a POSIX-like path with forward slashes
# as path segment separators. This is fine for the above inclusions but
Expand Down
2 changes: 1 addition & 1 deletion builtin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Source and object files

Expand Down
2 changes: 1 addition & 1 deletion canutils/canlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# CAN utility library

Expand Down
2 changes: 1 addition & 1 deletion canutils/libcanard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

WGET = wget
UNPACK = unzip
Expand Down
2 changes: 1 addition & 1 deletion canutils/libobd2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# CAN utility library

Expand Down
2 changes: 1 addition & 1 deletion examples/abntcodi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# ABNTCODI built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/adc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# ADC example

Expand Down
2 changes: 1 addition & 1 deletion examples/adxl372_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

PROGNAME = $(CONFIG_EXAMPLES_ADXL372_TEST_PROGNAME)
PRIORITY = $(CONFIG_EXAMPLES_ADXL372_TEST_PRIORITY)
Expand Down
2 changes: 1 addition & 1 deletion examples/ajoystick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Hello, World! Example

Expand Down
2 changes: 1 addition & 1 deletion examples/alarm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# RTC driver alarm test built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/apa102/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# APA102 built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/apds9960/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Hello, World! built-in application info

Expand Down
4 changes: 1 addition & 3 deletions examples/audio_rttl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@
#
############################################################################

-include $(TOPDIR)/.config
-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs
-include $(SDKDIR)/Make.defs
include $(APPDIR)/Make.defs

# Audio application info

Expand Down
2 changes: 1 addition & 1 deletion examples/bastest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# BAS test volume mounter

Expand Down
2 changes: 1 addition & 1 deletion examples/battery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Battery built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/bmi160/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs
-include $(SDKDIR)/Make.defs

# sixaxis built-in application info
Expand Down
2 changes: 1 addition & 1 deletion examples/bmp180/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# BMP180 Barometer sensor example built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/bridge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Discover built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/buttons/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# LED driver test built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/calib_udelay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/can/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# NuttX NX Graphics Example.

Expand Down
2 changes: 1 addition & 1 deletion examples/canard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

PROGNAME = canard
PRIORITY = SCHED_PRIORITY_DEFAULT
Expand Down
2 changes: 1 addition & 1 deletion examples/cctype/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# cctype verification

Expand Down
2 changes: 1 addition & 1 deletion examples/charger/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs
-include $(SDKDIR)/Make.defs

PROGNAME = $(CONFIG_EXAMPLES_CHARGER_PROGNAME)
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

MAINSRC = chat_main.c

Expand Down
2 changes: 1 addition & 1 deletion examples/chrono/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Chronometer built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/configdata/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# CONFIGDATA Unit Test

Expand Down
2 changes: 1 addition & 1 deletion examples/cpuhog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# do nothing loop to use up cpu time

Expand Down
2 changes: 1 addition & 1 deletion examples/cromfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# CROMFS Example

Expand Down
2 changes: 1 addition & 1 deletion examples/dac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# DAC tool

Expand Down
2 changes: 1 addition & 1 deletion examples/dhcpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# DHCP Daemon Example

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtxx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Dhtxx, World! built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/discover/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Discover built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/djoystick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# Hello, World! Example

Expand Down
2 changes: 1 addition & 1 deletion examples/dsptest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# dsptest built-in application info

Expand Down
2 changes: 1 addition & 1 deletion examples/elf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

# ELF Example

Expand Down
2 changes: 1 addition & 1 deletion examples/elf/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs
include $(TOPDIR)/Make.defs

ALL_SUBDIRS = errno hello helloxx longjmp mutex pthread signal task struct
BUILD_SUBDIRS = errno hello struct signal
Expand Down
5 changes: 1 addition & 4 deletions examples/elf/tests/errno/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs

OBJEXT ?= .o
DELIM ?= /
include $(TOPDIR)/Make.defs

ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)staging}"
Expand Down
5 changes: 1 addition & 4 deletions examples/elf/tests/hello/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs

OBJEXT ?= .o
DELIM ?= /
include $(TOPDIR)/Make.defs

ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)staging}"
Expand Down
5 changes: 1 addition & 4 deletions examples/elf/tests/helloxx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
#
############################################################################

-include $(TOPDIR)/Make.defs

OBJEXT ?= .o
DELIM ?= /
include $(TOPDIR)/Make.defs

ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)staging}"
Expand Down
Loading

0 comments on commit ead498a

Please sign in to comment.