move make.mk to hw/bsp/family_support.mk

This commit is contained in:
hathach
2025-10-14 15:14:43 +07:00
parent 38255ffc38
commit 9bf18d080b
40 changed files with 41 additions and 44 deletions

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,5 +1,5 @@
RTOS = freertos
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,5 +1,5 @@
RTOS = freertos
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,5 +1,5 @@
RTOS = freertos
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,5 +1,5 @@
RTOS = freertos
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,5 +1,5 @@
RTOS = freertos
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
# suppress warning caused by lwip
CFLAGS_GCC += \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
ifeq ($(DISABLE_MJPEG),1)
CFLAGS += -DCFG_EXAMPLE_VIDEO_DISABLE_MJPEG

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
ifeq ($(DISABLE_MJPEG),1)
CFLAGS += -DCFG_EXAMPLE_VIDEO_DISABLE_MJPEG

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,5 +1,5 @@
RTOS = freertos
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
FATFS_PATH = lib/fatfs/source

View File

@ -1,4 +1,4 @@
include ../../build_system/make/make.mk
include ../../../hw/bsp/family_support.mk
INC += \
src \

View File

@ -28,15 +28,13 @@ endif
# $(lastword $(MAKEFILE_LIST)) returns the name of this makefile relative to where make was invoked.
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
# strip off /examples/build_system/make to get for example ../../..
# and Set TOP to an absolute path
TOP = $(abspath $(subst make.mk,../../..,$(THIS_MAKEFILE)))
# Set TOP to an absolute path
TOP = $(abspath $(subst family_support.mk,../..,$(THIS_MAKEFILE)))
# Set CURRENT_PATH to the relative path from TOP to the current directory, ie examples/device/cdc_msc_freertos
CURRENT_PATH = $(subst $(TOP)/,,$(abspath .))
#-------------- Linux/Windows ------------
# Detect whether shell style is windows or not
# https://stackoverflow.com/questions/714100/os-detecting-makefile/52062069#52062069
ifeq '$(findstring ;,$(PATH))' ';'
@ -60,7 +58,6 @@ else
PYTHON = python3
endif
# Build directory
BUILD := _build/$(BOARD)