43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
#
|
|
# Makefile for using kernel config scripts for xilinx configuration
|
|
#
|
|
# written by Marcel Eckert <marcel.eckert@hsu-hh.de>
|
|
#
|
|
# License: GPLv2
|
|
#
|
|
|
|
|
|
KCONFIG_SUBDIR := kconfig/
|
|
|
|
.config:
|
|
@touch .config
|
|
|
|
.PHONY: kconfig_clean
|
|
kconfig_clean:
|
|
$(MAKE) -i -s --directory=$(MAKEFILES_PATH)$(KCONFIG_SUBDIR) clean
|
|
|
|
.PHONY: config
|
|
config: $(MAKEFILES_PATH)$(KCONFIG_SUBDIR)conf Kconfig
|
|
$(MAKEFILES_PATH)$(KCONFIG_SUBDIR)conf $(MAKEFILES_PATH)Kconfig
|
|
-@rm Make.sources
|
|
|
|
.PHONY: menuconfig
|
|
menuconfig: $(MAKEFILES_PATH)$(KCONFIG_SUBDIR)mconf Kconfig
|
|
$(MAKEFILES_PATH)$(KCONFIG_SUBDIR)mconf $(MAKEFILES_PATH)Kconfig
|
|
-@rm Make.sources
|
|
|
|
|
|
## recursive make calls to kconfig subdir for building the executables
|
|
|
|
$(MAKEFILES_PATH)$(KCONFIG_SUBDIR)conf:
|
|
$(MAKE) --directory=$(MAKEFILES_PATH)$(KCONFIG_SUBDIR) $(@F)
|
|
|
|
$(MAKEFILES_PATH)$(KCONFIG_SUBDIR)mconf:
|
|
$(MAKE) --directory=$(MAKEFILES_PATH)$(KCONFIG_SUBDIR) $(@F)
|
|
|
|
|
|
# rule to create an empty Kconfig file in project directory if none exist
|
|
Kconfig:
|
|
@echo "**** Creating empty Kconfig file for project"
|
|
@touch Kconfig
|