Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # =========================================================================== |
| 3 | # Kernel configuration targets |
| 4 | # These targets are used from top-level makefile |
| 5 | |
Randy Dunlap | 4bf6a9a | 2018-08-14 17:36:49 -0700 | [diff] [blame] | 6 | PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \ |
| 7 | build_menuconfig build_nconfig build_gconfig build_xconfig |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Al Viro | 61bee20 | 2008-08-25 04:51:27 -0400 | [diff] [blame] | 9 | ifdef KBUILD_KCONFIG |
| 10 | Kconfig := $(KBUILD_KCONFIG) |
| 11 | else |
Arnaud Lacombe | 838a2e5 | 2010-09-04 17:10:20 -0400 | [diff] [blame] | 12 | Kconfig := Kconfig |
Al Viro | 61bee20 | 2008-08-25 04:51:27 -0400 | [diff] [blame] | 13 | endif |
Sam Ravnborg | e703f75 | 2007-10-25 20:42:18 +0200 | [diff] [blame] | 14 | |
Masahiro Yamada | bd305f2 | 2019-05-27 23:37:24 +0900 | [diff] [blame] | 15 | ifndef KBUILD_DEFCONFIG |
| 16 | KBUILD_DEFCONFIG := defconfig |
| 17 | endif |
| 18 | |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 19 | ifeq ($(quiet),silent_) |
| 20 | silent := -s |
| 21 | endif |
| 22 | |
Yann E. MORIN | c2838e6 | 2012-11-22 01:06:04 +0100 | [diff] [blame] | 23 | # We need this, in case the user has it in its environment |
| 24 | unexport CONFIG_ |
| 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | xconfig: $(obj)/qconf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 27 | $< $(silent) $(Kconfig) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
| 29 | gconfig: $(obj)/gconf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 30 | $< $(silent) $(Kconfig) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
| 32 | menuconfig: $(obj)/mconf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 33 | $< $(silent) $(Kconfig) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
| 35 | config: $(obj)/conf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 36 | $< $(silent) --oldaskconfig $(Kconfig) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | |
nir.tzachar@gmail.com | 692d97c | 2009-11-25 12:28:43 +0200 | [diff] [blame] | 38 | nconfig: $(obj)/nconf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 39 | $< $(silent) $(Kconfig) |
nir.tzachar@gmail.com | 692d97c | 2009-11-25 12:28:43 +0200 | [diff] [blame] | 40 | |
Randy Dunlap | 4bf6a9a | 2018-08-14 17:36:49 -0700 | [diff] [blame] | 41 | build_menuconfig: $(obj)/mconf |
| 42 | |
| 43 | build_nconfig: $(obj)/nconf |
| 44 | |
| 45 | build_gconfig: $(obj)/gconf |
| 46 | |
| 47 | build_xconfig: $(obj)/qconf |
| 48 | |
Ulf Magnusson | 2a61625 | 2018-03-01 12:18:01 +0100 | [diff] [blame] | 49 | localyesconfig localmodconfig: $(obj)/conf |
Ulf Magnusson | 2a61625 | 2018-03-01 12:18:01 +0100 | [diff] [blame] | 50 | $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config |
Michal Marek | 7a996d3 | 2010-08-04 14:05:07 +0200 | [diff] [blame] | 51 | $(Q)if [ -f .config ]; then \ |
Sam Ravnborg | 4062f1a | 2010-07-31 23:35:26 +0200 | [diff] [blame] | 52 | cmp -s .tmp.config .config || \ |
| 53 | (mv -f .config .config.old.1; \ |
| 54 | mv -f .tmp.config .config; \ |
Ulf Magnusson | 2a61625 | 2018-03-01 12:18:01 +0100 | [diff] [blame] | 55 | $< $(silent) --oldconfig $(Kconfig); \ |
Sam Ravnborg | 4062f1a | 2010-07-31 23:35:26 +0200 | [diff] [blame] | 56 | mv -f .config.old.1 .config.old) \ |
| 57 | else \ |
| 58 | mv -f .tmp.config .config; \ |
Ulf Magnusson | 2a61625 | 2018-03-01 12:18:01 +0100 | [diff] [blame] | 59 | $< $(silent) --oldconfig $(Kconfig); \ |
Steven Rostedt | a7c0260 | 2009-05-07 11:09:55 -0400 | [diff] [blame] | 60 | fi |
Steven Rostedt | 03fa25d | 2009-04-29 22:52:22 -0400 | [diff] [blame] | 61 | $(Q)rm -f .tmp.config |
| 62 | |
Michal Marek | 1cba0c3 | 2015-04-08 11:11:57 +0200 | [diff] [blame] | 63 | # These targets map 1:1 to the commandline options of 'conf' |
Masahiro Yamada | 79123b1 | 2018-07-20 16:46:29 +0900 | [diff] [blame] | 64 | # |
| 65 | # Note: |
| 66 | # syncconfig has become an internal implementation detail and is now |
| 67 | # deprecated for external use |
Michal Marek | 1cba0c3 | 2015-04-08 11:11:57 +0200 | [diff] [blame] | 68 | simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \ |
Laura Abbott | 5d8b42a | 2019-11-04 17:10:08 -0500 | [diff] [blame] | 69 | alldefconfig randconfig listnewconfig olddefconfig syncconfig \ |
| 70 | helpnewconfig |
| 71 | |
Michal Marek | 1cba0c3 | 2015-04-08 11:11:57 +0200 | [diff] [blame] | 72 | PHONY += $(simple-targets) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | |
Michal Marek | 1cba0c3 | 2015-04-08 11:11:57 +0200 | [diff] [blame] | 74 | $(simple-targets): $(obj)/conf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 75 | $< $(silent) --$@ $(Kconfig) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | |
Masahiro Yamada | 0085b41 | 2018-10-30 00:41:28 +0900 | [diff] [blame] | 77 | PHONY += savedefconfig defconfig |
Masahiro Yamada | 911a91c | 2018-03-01 15:34:37 +0900 | [diff] [blame] | 78 | |
Sam Ravnborg | 7cf3d73 | 2010-07-31 23:35:34 +0200 | [diff] [blame] | 79 | savedefconfig: $(obj)/conf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 80 | $< $(silent) --$@=defconfig $(Kconfig) |
Sam Ravnborg | 7cf3d73 | 2010-07-31 23:35:34 +0200 | [diff] [blame] | 81 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 | defconfig: $(obj)/conf |
Masahiro Yamada | e0a2668 | 2019-05-27 23:37:21 +0900 | [diff] [blame] | 83 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 84 | @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" |
| 85 | $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) |
Michael Ellerman | d2036f3 | 2015-09-23 15:40:34 +1000 | [diff] [blame] | 86 | else |
| 87 | @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'" |
| 88 | $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | endif |
| 90 | |
| 91 | %_defconfig: $(obj)/conf |
Michal Marek | 0a1f00a | 2015-04-08 13:30:42 +0200 | [diff] [blame] | 92 | $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | |
Masahiro Yamada | 63a9103 | 2015-03-13 15:21:43 +0900 | [diff] [blame] | 94 | configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) |
Josh Triplett | 3aaefce | 2014-08-06 15:21:00 -0700 | [diff] [blame] | 95 | |
Masahiro Yamada | 63a9103 | 2015-03-13 15:21:43 +0900 | [diff] [blame] | 96 | %.config: $(obj)/conf |
| 97 | $(if $(call configfiles),, $(error No configuration exists for this target on this architecture)) |
| 98 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles) |
Masahiro Yamada | 3266c80 | 2019-06-05 03:14:53 +0900 | [diff] [blame] | 99 | $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig |
Josh Triplett | 3aaefce | 2014-08-06 15:21:00 -0700 | [diff] [blame] | 100 | |
| 101 | PHONY += kvmconfig |
Masahiro Yamada | 63a9103 | 2015-03-13 15:21:43 +0900 | [diff] [blame] | 102 | kvmconfig: kvm_guest.config |
| 103 | @: |
Josh Triplett | 3aaefce | 2014-08-06 15:21:00 -0700 | [diff] [blame] | 104 | |
Luis R. Rodriguez | 6c66850 | 2015-05-20 11:53:39 -0700 | [diff] [blame] | 105 | PHONY += xenconfig |
| 106 | xenconfig: xen.config |
| 107 | @: |
| 108 | |
Josh Triplett | 0da1d4a | 2014-08-08 16:25:47 -0700 | [diff] [blame] | 109 | PHONY += tinyconfig |
Masahiro Yamada | 63a9103 | 2015-03-13 15:21:43 +0900 | [diff] [blame] | 110 | tinyconfig: |
| 111 | $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config |
Josh Triplett | 0da1d4a | 2014-08-08 16:25:47 -0700 | [diff] [blame] | 112 | |
Masahiro Yamada | 022a4bf | 2018-03-13 18:12:03 +0900 | [diff] [blame] | 113 | # CHECK: -o cache_dir=<path> working? |
| 114 | PHONY += testconfig |
| 115 | testconfig: $(obj)/conf |
| 116 | $(PYTHON3) -B -m pytest $(srctree)/$(src)/tests \ |
| 117 | -o cache_dir=$(abspath $(obj)/tests/.cache) \ |
| 118 | $(if $(findstring 1,$(KBUILD_VERBOSE)),--capture=no) |
Masahiro Yamada | 1634f2b | 2019-08-25 10:31:27 +0900 | [diff] [blame] | 119 | clean-files += tests/.cache |
Masahiro Yamada | 022a4bf | 2018-03-13 18:12:03 +0900 | [diff] [blame] | 120 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 121 | # Help text used by make help |
| 122 | help: |
| 123 | @echo ' config - Update current config utilising a line-oriented program' |
Petr Vorel | bb6d83d | 2018-06-02 11:08:03 +0200 | [diff] [blame] | 124 | @echo ' nconfig - Update current config utilising a ncurses menu based program' |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | @echo ' menuconfig - Update current config utilising a menu based program' |
Diego Viola | 092373c | 2015-04-06 06:27:45 -0300 | [diff] [blame] | 126 | @echo ' xconfig - Update current config utilising a Qt based front-end' |
Diego Viola | 39c3f1b | 2015-05-31 14:35:51 -0300 | [diff] [blame] | 127 | @echo ' gconfig - Update current config utilising a GTK+ based front-end' |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 128 | @echo ' oldconfig - Update current config utilising a provided .config as base' |
Steven Rostedt | 03fa25d | 2009-04-29 22:52:22 -0400 | [diff] [blame] | 129 | @echo ' localmodconfig - Update current config disabling modules not loaded' |
Steven Rostedt | 281c9da | 2009-04-29 22:52:23 -0400 | [diff] [blame] | 130 | @echo ' localyesconfig - Update current config converting local mods to core' |
Sam Ravnborg | 0748cb3 | 2010-07-31 23:35:31 +0200 | [diff] [blame] | 131 | @echo ' defconfig - New config with default from ARCH supplied defconfig' |
Sam Ravnborg | 7cf3d73 | 2010-07-31 23:35:34 +0200 | [diff] [blame] | 132 | @echo ' savedefconfig - Save current config as ./defconfig (minimal config)' |
Jesper Juhl | e11f049 | 2006-02-25 21:52:50 +0100 | [diff] [blame] | 133 | @echo ' allnoconfig - New config where all options are answered with no' |
Sam Ravnborg | 0748cb3 | 2010-07-31 23:35:31 +0200 | [diff] [blame] | 134 | @echo ' allyesconfig - New config where all options are accepted with yes' |
| 135 | @echo ' allmodconfig - New config selecting modules when possible' |
| 136 | @echo ' alldefconfig - New config with all symbols set to default' |
| 137 | @echo ' randconfig - New config with random answer to all options' |
Sam Ravnborg | 861b4ea | 2010-07-31 23:35:28 +0200 | [diff] [blame] | 138 | @echo ' listnewconfig - List new options' |
Laura Abbott | 5d8b42a | 2019-11-04 17:10:08 -0500 | [diff] [blame] | 139 | @echo ' helpnewconfig - List new options and help text' |
Marc Herbert | cedd55d | 2018-01-26 14:59:00 -0800 | [diff] [blame] | 140 | @echo ' olddefconfig - Same as oldconfig but sets new symbols to their' |
| 141 | @echo ' default value without prompting' |
Luis R. Rodriguez | 9bcd776 | 2015-05-20 11:53:38 -0700 | [diff] [blame] | 142 | @echo ' kvmconfig - Enable additional options for kvm guest kernel support' |
Geert Uytterhoeven | a64c044 | 2019-10-25 13:52:32 +0200 | [diff] [blame] | 143 | @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel' |
| 144 | @echo ' support' |
Josh Triplett | 0da1d4a | 2014-08-08 16:25:47 -0700 | [diff] [blame] | 145 | @echo ' tinyconfig - Configure the tiniest possible kernel' |
Petr Vorel | d6a0c8a | 2018-06-02 11:08:02 +0200 | [diff] [blame] | 146 | @echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)' |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 147 | |
| 148 | # =========================================================================== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | # object files used by all kconfig flavours |
Masahiro Yamada | 769a1c0 | 2019-01-24 19:47:30 +0900 | [diff] [blame] | 150 | common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \ |
Masahiro Yamada | 521b29b | 2019-08-26 02:28:33 +0900 | [diff] [blame] | 151 | symbol.o util.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 152 | |
Masahiro Yamada | 769a1c0 | 2019-01-24 19:47:30 +0900 | [diff] [blame] | 153 | $(obj)/lexer.lex.o: $(obj)/parser.tab.h |
Masahiro Yamada | 9cc342f | 2019-05-13 15:22:16 +0900 | [diff] [blame] | 154 | HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src) |
| 155 | HOSTCFLAGS_parser.tab.o := -I $(srctree)/$(src) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 156 | |
Masahiro Yamada | 558e78e | 2018-12-21 17:33:04 +0900 | [diff] [blame] | 157 | # conf: Used for defconfig, oldconfig and related targets |
| 158 | hostprogs-y += conf |
| 159 | conf-objs := conf.o $(common-objs) |
| 160 | |
Masahiro Yamada | 1c5af5c | 2018-05-22 16:22:21 +0900 | [diff] [blame] | 161 | # nconf: Used for the nconfig target based on ncurses |
| 162 | hostprogs-y += nconf |
Masahiro Yamada | 558e78e | 2018-12-21 17:33:04 +0900 | [diff] [blame] | 163 | nconf-objs := nconf.o nconf.gui.o $(common-objs) |
Arnaud Lacombe | 7080e47 | 2010-08-16 00:19:04 -0400 | [diff] [blame] | 164 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 165 | HOSTLDLIBS_nconf = $(shell . $(obj)/nconf-cfg && echo $$libs) |
| 166 | HOSTCFLAGS_nconf.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) |
| 167 | HOSTCFLAGS_nconf.gui.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) |
Masahiro Yamada | 1c5af5c | 2018-05-22 16:22:21 +0900 | [diff] [blame] | 168 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 169 | $(obj)/nconf.o $(obj)/nconf.gui.o: $(obj)/nconf-cfg |
Masahiro Yamada | 1c5af5c | 2018-05-22 16:22:21 +0900 | [diff] [blame] | 170 | |
| 171 | # mconf: Used for the menuconfig target based on lxdialog |
| 172 | hostprogs-y += mconf |
Masahiro Yamada | 54b8ae6 | 2019-08-30 13:34:01 +0900 | [diff] [blame] | 173 | lxdialog := $(addprefix lxdialog/, \ |
| 174 | checklist.o inputbox.o menubox.o textbox.o util.o yesno.o) |
| 175 | mconf-objs := mconf.o $(lxdialog) $(common-objs) |
Masahiro Yamada | 1c5af5c | 2018-05-22 16:22:21 +0900 | [diff] [blame] | 176 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 177 | HOSTLDLIBS_mconf = $(shell . $(obj)/mconf-cfg && echo $$libs) |
Masahiro Yamada | 1c5af5c | 2018-05-22 16:22:21 +0900 | [diff] [blame] | 178 | $(foreach f, mconf.o $(lxdialog), \ |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 179 | $(eval HOSTCFLAGS_$f = $$(shell . $(obj)/mconf-cfg && echo $$$$cflags))) |
Masahiro Yamada | 1c5af5c | 2018-05-22 16:22:21 +0900 | [diff] [blame] | 180 | |
Masahiro Yamada | 54b8ae6 | 2019-08-30 13:34:01 +0900 | [diff] [blame] | 181 | $(addprefix $(obj)/, mconf.o $(lxdialog)): $(obj)/mconf-cfg |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 183 | # qconf: Used for the xconfig target based on Qt |
| 184 | hostprogs-y += qconf |
| 185 | qconf-cxxobjs := qconf.o |
Masahiro Yamada | 3b54197856 | 2018-12-21 17:33:07 +0900 | [diff] [blame] | 186 | qconf-objs := images.o $(common-objs) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 188 | HOSTLDLIBS_qconf = $(shell . $(obj)/qconf-cfg && echo $$libs) |
| 189 | HOSTCXXFLAGS_qconf.o = $(shell . $(obj)/qconf-cfg && echo $$cflags) |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 190 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 191 | $(obj)/qconf.o: $(obj)/qconf-cfg $(obj)/qconf.moc |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 192 | |
| 193 | quiet_cmd_moc = MOC $@ |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 194 | cmd_moc = $(shell . $(obj)/qconf-cfg && echo $$moc) -i $< -o $@ |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 195 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 196 | $(obj)/%.moc: $(src)/%.h $(obj)/qconf-cfg |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 197 | $(call cmd,moc) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 198 | |
Masahiro Yamada | b464ef5 | 2018-05-22 16:22:20 +0900 | [diff] [blame] | 199 | # gconf: Used for the gconfig target based on GTK+ |
| 200 | hostprogs-y += gconf |
Masahiro Yamada | 3b54197856 | 2018-12-21 17:33:07 +0900 | [diff] [blame] | 201 | gconf-objs := gconf.o images.o $(common-objs) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 202 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 203 | HOSTLDLIBS_gconf = $(shell . $(obj)/gconf-cfg && echo $$libs) |
| 204 | HOSTCFLAGS_gconf.o = $(shell . $(obj)/gconf-cfg && echo $$cflags) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 206 | $(obj)/gconf.o: $(obj)/gconf-cfg |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 207 | |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 208 | # check if necessary packages are available, and configure build flags |
Masahiro Yamada | ba97df4 | 2019-01-03 10:16:54 +0900 | [diff] [blame] | 209 | filechk_conf_cfg = $(CONFIG_SHELL) $< |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 210 | |
Masahiro Yamada | d86271a | 2019-01-05 12:01:51 +0900 | [diff] [blame] | 211 | $(obj)/%conf-cfg: $(src)/%conf-cfg.sh FORCE |
Masahiro Yamada | 0b669a5 | 2018-05-22 16:22:19 +0900 | [diff] [blame] | 212 | $(call filechk,conf_cfg) |
| 213 | |
Masahiro Yamada | 2648ca1 | 2019-01-11 11:51:48 +0900 | [diff] [blame] | 214 | clean-files += *conf-cfg |