mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
Use BUSYBOX_LOCAL shell variable, if defined
This commit is contained in:
parent
53a740fcd6
commit
a1b0651a5a
25
Makefile
25
Makefile
@ -31,23 +31,28 @@ noconfig_targets:=menuconfig config oldconfig randconfig \
|
|||||||
defconfig allyesconfig allnoconfig release tags \
|
defconfig allyesconfig allnoconfig release tags \
|
||||||
source-check help
|
source-check help
|
||||||
|
|
||||||
# $(shell find . -name *_defconfig |sed 's/.*\///')
|
|
||||||
|
|
||||||
# Pull in the user's configuration file
|
# Use shell variables, if defined
|
||||||
ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
|
||||||
ifeq ($(BOARD),)
|
|
||||||
-include $(TOPDIR).config
|
|
||||||
else
|
|
||||||
-include $(TOPDIR)/local/$(BOARD)/$(BOARD).config
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifneq ($(BUILDROOT_DL_DIR),)
|
ifneq ($(BUILDROOT_DL_DIR),)
|
||||||
BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
|
BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BUILDROOT_LOCAL),)
|
ifneq ($(BUILDROOT_LOCAL),)
|
||||||
LOCAL:=$(BUILDROOT_LOCAL)
|
LOCAL:=$(BUILDROOT_LOCAL)
|
||||||
else
|
else
|
||||||
LOCAL:=local
|
LOCAL:=$(TOPDIR)/local
|
||||||
|
endif
|
||||||
|
|
||||||
|
# $(shell find . -name *_defconfig |sed 's/.*\///')
|
||||||
|
# Pull in the user's configuration file
|
||||||
|
ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
||||||
|
ifeq ($(BOARD),)
|
||||||
|
# if "make BOARD=xyz" command
|
||||||
|
-include $(TOPDIR).config
|
||||||
|
else
|
||||||
|
# if "make" command
|
||||||
|
-include $(LOCAL)/$(BOARD)/$(BOARD).config
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# To put more focus on warnings, be less verbose as default
|
# To put more focus on warnings, be less verbose as default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user