Skip to content

Commit 362d27a

Browse files
committed
defconfigs: allow tab completion
Allow tab completion for defconfigs. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 4225e6c commit 362d27a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ DEFAULT_DEPS += $(LOCALHOST_SETUP_WORK)
237237
include scripts/tests.Makefile
238238
include scripts/ci.Makefile
239239
include scripts/archive.Makefile
240+
include scripts/defconfig.Makefile
240241

241242
PHONY += clean
242243
clean:

scripts/defconfig.Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: copyleft-next-0.3.1
2+
3+
DEFCONFIGS := $(notdir $(wildcard defconfigs/*))
4+
5+
$(foreach cfg,$(DEFCONFIGS),$(eval defconfig-$(cfg): defconfigs/$(cfg)))
6+
7+
defconfig-%: $(KCONFIG_DIR)/conf Kconfig
8+
scripts/conf --defconfig=defconfigs/$* Kconfig

0 commit comments

Comments
 (0)