added dirclean source download delete
This commit is contained in:
1 parent
1d18accedd
commit
dff0ded43d
4 files changed
+55
-25
No files matched your search
@@ -31,31 +31,11 @@ UC = $(shell echo $(Command) | tr '[:lower:]' '[:upper:]')
|
||||
# $(call CMD_INSTALL_$(call UC))
|
||||
|
||||
all:
|
||||
$(call CMD_CONFIGURE_UCLIBC)
|
||||
$(call CMD_BUILD_UCLIBC)
|
||||
$(call CMD_INSTALL_UCLIBC)
|
||||
|
||||
$(call download,busybox)
|
||||
$(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))
|
||||
|
||||
@@ -68,4 +48,26 @@ list-defconfigs:
|
||||
)
|
||||
$(call successmsg,Copy defconfig: $@ to .config is OK)
|
||||
|
||||
.PHONY: %_defconfig
|
||||
%-dirclean:
|
||||
$(call msg,Deleting: $(call split-,$@,1) build directory)
|
||||
$(if \
|
||||
$(wildcard $(TOPDIR)/output/build/$(call split-,$@,1)), \
|
||||
$(call delete,$(TOPDIR)/output/build/$(call split-,$@,1)), \
|
||||
$(call msg,$(TOPDIR)/output/build/$(call split-,$@,1): not exists) \
|
||||
)
|
||||
$(call successmsg,Delete: $(call split-,$@,1) build directory)
|
||||
|
||||
source:
|
||||
$(call msg,Downloading busybox)
|
||||
$(call download,busybox)
|
||||
$(call successmsg,Download busybox)
|
||||
|
||||
distclean:
|
||||
@if [ -d $(TOPDIR)/dl ]; then \
|
||||
rm -rv dl; \
|
||||
fi
|
||||
@if [ -d $(TOPDIR)/output ]; then \
|
||||
rm -rv output; \
|
||||
fi
|
||||
|
||||
.PHONY: %_defconfig source %-dirclean list-defconfigs
|
||||
Reference in new issue
Block a user