67 lines
1.4 KiB
Makefile
67 lines
1.4 KiB
Makefile
TOPDIR := $(CURDIR)
|
|
DEFCONFIGS_DIR := $(CURDIR)/configs
|
|
|
|
nconfig:
|
|
kconfig-nconf Config.in
|
|
|
|
menuconfig:
|
|
kconfig-mconf Config.in
|
|
|
|
config:
|
|
kconfig-conf Config.in
|
|
|
|
py-menuconfig:
|
|
scripts/menuconfig Config.in
|
|
|
|
include scripts/funcs.mk
|
|
include package/package.mk
|
|
include support/config/config.mk
|
|
|
|
Command := $(firstword $(MAKECMDGOALS))
|
|
|
|
UC = $(shell echo $(Command) | tr '[:lower:]' '[:upper:]')
|
|
|
|
# $(Command):
|
|
# $(call CMD_CONFIGURE_$(call UC))
|
|
# $(call CMD_BUILD_$(call UC))
|
|
# $(call CMD_INSTALL_$(call UC))
|
|
|
|
all:
|
|
$(call CMD_CONFIGURE_UCLIBC)
|
|
$(call CMD_BUILD_UCLIBC)
|
|
$(call CMD_INSTALL_UCLIBC)
|
|
|
|
$(call CMD_CONFIGURE_BUSYBOX)
|
|
$(call CMD_BUILD_BUSYBOX)
|
|
$(call CMD_INSTALL_BUSYBOX)
|
|
|
|
$(call CMD_CONFIGURE_ZLIB)
|
|
$(call CMD_BUILD_ZLIB)
|
|
$(call CMD_INSTALL_ZLIB)
|
|
|
|
$(call CMD_CONFIGURE_DROPBEAR)
|
|
$(call CMD_BUILD_DROPBEAR)
|
|
$(call CMD_INSTALL_DROPBEAR)
|
|
ifeq (CONFIG_SIMPLE_SFTP_SERVER_DROPBEAR,y)
|
|
$(call CMD_CONFIGURE_SFTP_SERVER_DROPBEAR)
|
|
$(call CMD_BUILD_SFTP_SERVER_DROPBEAR)
|
|
$(call CMD_INSTALL_SFTP_SERVER_DROPBEAR)
|
|
endif
|
|
|
|
$(call CMD_CONFIGURE_UBOOT)
|
|
$(call CMD_BUILD_UBOOT)
|
|
$(call CMD_INSTALL_UBOOT)
|
|
|
|
list-defconfigs:
|
|
$(call list-defconfigs,$(TOPDIR))
|
|
|
|
%_defconfig:
|
|
$(call msg,Copy defconfig: $@ to .config)
|
|
$(if \
|
|
$(wildcard $(DEFCONFIGS_DIR)/$@),\
|
|
$(call copy_file,$(DEFCONFIGS_DIR)/$@,$(TOPDIR)/.config),\
|
|
$(call errmsg,Can't find $@)\
|
|
)
|
|
$(call successmsg,Copy defconfig: $@ to .config is OK)
|
|
|
|
.PHONY: %_defconfig |