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