backports: use kconfig from git subtree
cover backports: use kconfig from git subtree
Updated version of kconfig has always been a challenge. One of the pain points is figuring out how to do this well and what files / Makefile lines to edit. Part of this is because we don't carry all the kernel's helpers on our kconfig helper. The other aspect which makes it hard is figuring out adjustments of missing files, renames, and updates to things to make things compile.
The kconfig git subtree effort aims at helping with this. It figures all the above out for you and all we need to do is just declare where we keep the kconfig data on, and then include a Makefile from the git subtree code into our project. That's it.
Of course then there may also be fixes to our Kconfig files for deprecated features, but that's expected collateral. This drops our version of kconfig and embraces the git subtree version whic is now up to date with the latest kconfig from linux-next next-20220204.
That makes for 4 projects now using this new kconfig git subtree:
* init-kconfig
* kdevops
* fio-tests
* backports
I've tested this by generating a backport using Linux stable kernel v5.15.8. At least make menuconfig works.
Luis Chamberlain (4):
backport/kconf: remove our version of kconfig
Squashed 'backport/kconf/' content from commit 98bda615
kconfig: fix backport syntax to work with linux-next next-20220204 Makefile.subtrees: document how to update kconfig
Signature · 4 lines
2.34.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH 1/4 backport/kconf: remove our version of kconfig
Updating kconfig from upstream is today a manual process. Drop it, we'll soon replace it with a kconfig git subtree.
--- backport/Makefile.real | 32 +- backport/kconf/.gitignore | 17 - backport/kconf/Makefile | 23 - backport/kconf/conf.c | 717 ----------- backport/kconf/confdata.c | 1249 ------------------ backport/kconf/expr.c | 1305 ------------------- backport/kconf/expr.h | 329 ----- backport/kconf/kconf_id.c | 53 - backport/kconf/list.h | 132 -- backport/kconf/lkc.h | 188 --- backport/kconf/lkc_proto.h | 53 - backport/kconf/lxdialog/.gitignore | 4 - backport/kconf/lxdialog/BIG.FAT.WARNING | 4 - backport/kconf/lxdialog/check-lxdialog.sh | 93 -- backport/kconf/lxdialog/checklist.c | 332 ----- backport/kconf/lxdialog/dialog.h | 257 ---- backport/kconf/lxdialog/inputbox.c | 301 ----- backport/kconf/lxdialog/menubox.c | 437 ------- backport/kconf/lxdialog/textbox.c | 408 ------ backport/kconf/lxdialog/util.c | 713 ---------- backport/kconf/lxdialog/yesno.c | 114 -- backport/kconf/mconf.c | 1047 --------------- backport/kconf/menu.c | 873 ------------- backport/kconf/symbol.c | 1432 --------------------- backport/kconf/util.c | 167 --- backport/kconf/zconf.l | 372 ------ backport/kconf/zconf.y | 782 ----------- 27 files changed, 2 insertions(+), 11432 deletions(-) delete mode 100644 backport/kconf/.gitignore delete mode 100644 backport/kconf/Makefile delete mode 100644 backport/kconf/conf.c delete mode 100644 backport/kconf/confdata.c delete mode 100644 backport/kconf/expr.c delete mode 100644 backport/kconf/expr.h delete mode 100644 backport/kconf/kconf_id.c delete mode 100644 backport/kconf/list.h delete mode 100644 backport/kconf/lkc.h delete mode 100644 backport/kconf/lkc_proto.h delete mode 100644 backport/kconf/lxdialog/.gitignore delete mode 100644 backport/kconf/lxdialog/BIG.FAT.WARNING delete mode 100755 backport/kconf/lxdialog/check-lxdialog.sh delete mode 100644 backport/kconf/lxdialog/checklist.c delete mode 100644 backport/kconf/lxdialog/dialog.h delete mode 100644 backport/kconf/lxdialog/inputbox.c delete mode 100644 backport/kconf/lxdialog/menubox.c delete mode 100644 backport/kconf/lxdialog/textbox.c delete mode 100644 backport/kconf/lxdialog/util.c delete mode 100644 backport/kconf/lxdialog/yesno.c delete mode 100644 backport/kconf/mconf.c delete mode 100644 backport/kconf/menu.c delete mode 100644 backport/kconf/symbol.c delete mode 100644 backport/kconf/util.c delete mode 100644 backport/kconf/zconf.l delete mode 100644 backport/kconf/zconf.y
backport/Makefile.real +2 -30
@@ -10,36 +10,8 @@ endif .SUFFIXES: export CONFIG_=CPTCFG_ - -.PHONY: menuconfig -menuconfig: - @$(MAKE) -C kconf mconf - @./kconf/mconf Kconfig - -.PHONY: listnewconfig oldaskconfig oldconfig \ - silentoldconfig olddefconfig oldnoconfig \ - allnoconfig allyesconfig allmodconfig \ - alldefconfig randconfig -listnewconfig oldaskconfig oldconfig \ -silentoldconfig olddefconfig oldnoconfig \ -allnoconfig allyesconfig allmodconfig \ -alldefconfig randconfig: - @$(MAKE) -C kconf conf - @./kconf/conf --$@ Kconfig - -.PHONY: usedefconfig -usedefconfig: - @$(MAKE) -C kconf conf - @./kconf/conf --defconfig=defconfig Kconfig - -.PHONY: savedefconfig -savedefconfig: - @$(MAKE) -C kconf conf - @./kconf/conf --savedefconfig=defconfig Kconfig - -defconfig-%:: - @$(MAKE) -C kconf conf - @./kconf/conf --defconfig=defconfigs/$(@:defconfig-%=%) Kconfig +export KCONFIG_DIR=$(CURDIR)/kconf +include $(KCONFIG_DIR)/kconfig.Makefile .config: @test -f defconfig && $(MAKE) usedefconfig || ( \
backport/kconf/.gitignore deleted +0 -17
@@ -1,17 +0,0 @@ -# -# Generated files -# -*.moc -gconf.glade.h -*.pot -*.mo - -# -# configuration programs -# -conf -mconf -nconf -qconf -gconf -kxgettext
backport/kconf/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -CFLAGS=-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer - -LXDIALOG := lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o - -conf: conf.o zconf.tab.o -mconf_CFLAGS := $(shell ./lxdialog/check-lxdialog.sh -ccflags) -DLOCALE -mconf_LDFLAGS := $(shell ./lxdialog/check-lxdialog.sh -ldflags $(CC)) -mconf: CFLAGS += $(mconf_CFLAGS) - -mconf: mconf.o zconf.tab.o $(LXDIALOG) - $(CC) -o mconf $^ $(mconf_LDFLAGS) - -.PHONY: clean -clean: - @rm -f mconf conf *.o lxdialog/*.o - -zconf.tab.c: zconf.lex.c - -%.tab.c: %.y - $(YACC) -o$@ -t -l $< - -%.lex.c: %.l - $(LEX) -o$@ -L $<
backport/kconf/conf.c deleted +0 -717
717 lines not on this page · raw message
backport/kconf/confdata.c deleted +0 -1249
1,249 lines not on this page · raw message
backport/kconf/expr.c deleted +0 -1305
956 lines not on this page · raw message
backport/kconf/expr.h deleted +0 -329
329 lines not on this page · raw message
backport/kconf/kconf_id.c deleted +0 -53
53 lines not on this page · raw message
backport/kconf/list.h deleted +0 -132
132 lines not on this page · raw message
backport/kconf/lkc.h deleted +0 -188
188 lines not on this page · raw message
backport/kconf/lkc_proto.h deleted +0 -53
53 lines not on this page · raw message
backport/kconf/lxdialog/.gitignore deleted +0 -4
Lines of this file are not shown. View the raw message.
backport/kconf/lxdialog/BIG.FAT.WARNING deleted +0 -4
Lines of this file are not shown. View the raw message.
backport/kconf/lxdialog/check-lxdialog.sh deleted +0 -93
93 lines not on this page · raw message
backport/kconf/lxdialog/checklist.c deleted +0 -332
332 lines not on this page · raw message
backport/kconf/lxdialog/dialog.h deleted +0 -257
257 lines not on this page · raw message
backport/kconf/lxdialog/inputbox.c deleted +0 -301
301 lines not on this page · raw message
backport/kconf/lxdialog/menubox.c deleted +0 -437
437 lines not on this page · raw message
backport/kconf/lxdialog/textbox.c deleted +0 -408
408 lines not on this page · raw message
backport/kconf/lxdialog/util.c deleted +0 -713
713 lines not on this page · raw message
backport/kconf/lxdialog/yesno.c deleted +0 -114
114 lines not on this page · raw message
backport/kconf/mconf.c deleted +0 -1047
1,047 lines not on this page · raw message
backport/kconf/menu.c deleted +0 -873
873 lines not on this page · raw message
backport/kconf/symbol.c deleted +0 -1432
1,432 lines not on this page · raw message
backport/kconf/util.c deleted +0 -167
167 lines not on this page · raw message
backport/kconf/zconf.l deleted +0 -372
372 lines not on this page · raw message
backport/kconf/zconf.y deleted +0 -782
782 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 4 lines
2.34.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
Part of the diff is not shown here. View the raw message.
PATCH 2/4 Squashed 'backport/kconf/' content from commit 98bda615
In reply to Luis Chamberlaingit-subtree-dir: backport/kconf
git-subtree-split: 98bda6156678fbc1c0930a85950418af81c0a25f
--- .gitignore | 24 + GPL-2.0 | 359 +++++++++ Kbuild.include | 73 ++ Makefile | 62 ++ README.kconfig | 13 + conf.c | 921 +++++++++++++++++++++ confdata.c | 1262 +++++++++++++++++++++++++++++ expr.c | 1303 ++++++++++++++++++++++++++++++ expr.h | 326 ++++++++ internal.h | 9 + kconf_id.c | 52 ++ kconfig.Makefile | 65 ++ kconfig/.gitignore | 16 + lexer.l | 468 +++++++++++ list.h | 132 +++ lkc.h | 156 ++++ lkc_proto.h | 52 ++ lxdialog/.gitignore | 4 + lxdialog/BIG.FAT.WARNING | 4 + lxdialog/checklist.c | 319 ++++++++ lxdialog/dialog.h | 238 ++++++ lxdialog/inputbox.c | 289 +++++++ lxdialog/menubox.c | 424 ++++++++++ lxdialog/textbox.c | 395 +++++++++ lxdialog/util.c | 700 ++++++++++++++++ lxdialog/yesno.c | 101 +++ mconf-cfg.sh | 52 ++ mconf.c | 1037 ++++++++++++++++++++++++ menu.c | 881 ++++++++++++++++++++ nconf-cfg.sh | 50 ++ nconf.c | 1549 ++++++++++++++++++++++++++++++++++++ nconf.gui.c | 614 ++++++++++++++ nconf.h | 83 ++ parser.y | 716 +++++++++++++++++ preprocess.c | 574 +++++++++++++ setlocalversion | 118 +++ symbol.c | 1270 +++++++++++++++++++++++++++++ update-upstream-kconfig.sh | 28 + util.c | 129 +++ 39 files changed, 14868 insertions(+) create mode 100644 .gitignore create mode 100644 GPL-2.0 create mode 100644 Kbuild.include create mode 100644 Makefile create mode 100644 README.kconfig create mode 100644 conf.c create mode 100644 confdata.c create mode 100644 expr.c create mode 100644 expr.h create mode 100644 internal.h create mode 100644 kconf_id.c create mode 100644 kconfig.Makefile create mode 100644 kconfig/.gitignore create mode 100644 lexer.l create mode 100644 list.h create mode 100644 lkc.h create mode 100644 lkc_proto.h create mode 100644 lxdialog/.gitignore create mode 100644 lxdialog/BIG.FAT.WARNING create mode 100644 lxdialog/checklist.c create mode 100644 lxdialog/dialog.h create mode 100644 lxdialog/inputbox.c create mode 100644 lxdialog/menubox.c create mode 100644 lxdialog/textbox.c create mode 100644 lxdialog/util.c create mode 100644 lxdialog/yesno.c create mode 100755 mconf-cfg.sh create mode 100644 mconf.c create mode 100644 menu.c create mode 100755 nconf-cfg.sh create mode 100644 nconf.c create mode 100644 nconf.gui.c create mode 100644 nconf.h create mode 100644 parser.y create mode 100644 preprocess.c create mode 100755 setlocalversion create mode 100644 symbol.c create mode 100755 update-upstream-kconfig.sh create mode 100644 util.c
.gitignore new file +24 -0
@@ -0,0 +1,24 @@ +# +# Generated files +# +*.moc +*.lex.c + +# +# configuration programs +# +conf +mconf +nconf +qconf +gconf + +parser.tab.h +parser.tab.c + +*.o +*.o.cmd + +lxdialog/*.o.cmd +lxdialog/*.o +
GPL-2.0 new file +359 -0
359 lines not on this page · raw message
Kbuild.include new file +73 -0
73 lines not on this page · raw message
Makefile new file +62 -0
62 lines not on this page · raw message
README.kconfig new file +13 -0
@@ -0,0 +1,13 @@ +This effort allows for independent projects to use the Linux kernel's +kconfig on external projects, and make updates of config really easy +to do. It does this by letting you use this tree as a git subtree. + +For more details and to keep this small please refer to a simple demo +project which demonstrates how to use this and uses it itself: + +https://github.com/mcgrof/init-kconfig + +The following projects use this git tree as a git subtree as well: + + * https://github.com/mcgrof/kdevops + * https://github.com/mcgrof/fio-tests
conf.c new file +921 -0
921 lines not on this page · raw message
confdata.c new file +1262 -0
1,262 lines not on this page · raw message
expr.c new file +1303 -0
286 lines not on this page · raw message
expr.h new file +326 -0
326 lines not on this page · raw message
kconf_id.c new file +52 -0
52 lines not on this page · raw message
kconfig.Makefile new file +65 -0
65 lines not on this page · raw message
lexer.l new file +468 -0
468 lines not on this page · raw message
list.h new file +132 -0
132 lines not on this page · raw message
lkc.h new file +156 -0
156 lines not on this page · raw message
lkc_proto.h new file +52 -0
52 lines not on this page · raw message
lxdialog/checklist.c new file +319 -0
319 lines not on this page · raw message
lxdialog/dialog.h new file +238 -0
238 lines not on this page · raw message
lxdialog/inputbox.c new file +289 -0
289 lines not on this page · raw message
lxdialog/menubox.c new file +424 -0
424 lines not on this page · raw message
lxdialog/textbox.c new file +395 -0
395 lines not on this page · raw message
lxdialog/util.c new file +700 -0
700 lines not on this page · raw message
lxdialog/yesno.c new file +101 -0
101 lines not on this page · raw message
mconf-cfg.sh new file +52 -0
52 lines not on this page · raw message
mconf.c new file +1037 -0
1,037 lines not on this page · raw message
menu.c new file +881 -0
881 lines not on this page · raw message
nconf-cfg.sh new file +50 -0
50 lines not on this page · raw message
nconf.c new file +1549 -0
1,549 lines not on this page · raw message
nconf.gui.c new file +614 -0
614 lines not on this page · raw message
nconf.h new file +83 -0
83 lines not on this page · raw message
parser.y new file +716 -0
716 lines not on this page · raw message
preprocess.c new file +574 -0
574 lines not on this page · raw message
setlocalversion new file +118 -0
118 lines not on this page · raw message
symbol.c new file +1270 -0
1,270 lines not on this page · raw message
util.c new file +129 -0
129 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 4 lines
2.34.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
Part of the diff is not shown here. View the raw message.
PATCH 3/4 kconfig: fix backport syntax to work with linux-next next-20220204
In reply to Luis Chamberlainkconfig on next-20220204 has a few changes. First the options stuff has been deprecated leaving only the modules option. For variables though we can just use shell. And if we use variables on source we just need to use parens like $(FOO).
Fix all this.
This was tested with a backport generated for v5.15.8.
--- backport/Kconfig.integrate | 6 +++--- backport/Kconfig.package | 18 +++++++++--------- backport/Kconfig.sources | 18 +++++++++--------- backport/compat/Kconfig | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-)
backport/Kconfig.integrate +3 -3
@@ -30,8 +30,8 @@ menuconfig BACKPORT_LINUX if BACKPORT_LINUX -source "$BACKPORT_DIR/Kconfig.versions" -source "$BACKPORT_DIR/Kconfig.sources" -source "$BACKPORT_DIR/Kconfig.local" +source "$(BACKPORT_DIR)/Kconfig.versions" +source "$(BACKPORT_DIR)/Kconfig.sources" +source "$(BACKPORT_DIR)/Kconfig.local" endif # BACKPORT_LINUX
backport/Kconfig.package +9 -9
@@ -2,24 +2,24 @@ mainmenu "Backports from $BACKPORTED_KERNEL_NAME $BACKPORTED_KERNEL_VERSION (bac config BACKPORT_DIR string - option env="BACKPORT_DIR" + default $(shell, echo $BACKPORT_DIR) config BACKPORTS_VERSION string - option env="BACKPORTS_VERSION" + default $(shell, echo $BACKPORTS_VERSION) config BACKPORTED_KERNEL_VERSION string - option env="BACKPORTED_KERNEL_VERSION" + default $(shell, echo $BACKPORTED_KERNEL_VERSION) config BACKPORTED_KERNEL_NAME string - option env="BACKPORTED_KERNEL_NAME" + default $(shell, echo $BACKPORTED_KERNEL_NAME) # Packaging hacks -source "$BACKPORT_DIR/Kconfig.package.hacks" +source "$(BACKPORT_DIR)/Kconfig.package.hacks" # Code we backport -source "$BACKPORT_DIR/Kconfig.sources" +source "$(BACKPORT_DIR)/Kconfig.sources" # these will be generated -source "$BACKPORT_DIR/Kconfig.kernel" -source "$BACKPORT_DIR/Kconfig.versions" -source "$BACKPORT_DIR/Kconfig.local" +source "$(BACKPORT_DIR)/Kconfig.kernel" +source "$(BACKPORT_DIR)/Kconfig.versions" +source "$(BACKPORT_DIR)/Kconfig.local"
backport/Kconfig.sources +9 -9
@@ -1,15 +1,15 @@ # this has the configuration for the backport code -source "$BACKPORT_DIR/compat/Kconfig" +source "$(BACKPORT_DIR)/compat/Kconfig" # these are copied from the kernel -source "$BACKPORT_DIR/net/wireless/Kconfig" -source "$BACKPORT_DIR/net/mac80211/Kconfig" -source "$BACKPORT_DIR/drivers/net/wireless/Kconfig" -source "$BACKPORT_DIR/drivers/net/usb/Kconfig" +source "$(BACKPORT_DIR)/net/wireless/Kconfig" +source "$(BACKPORT_DIR)/net/mac80211/Kconfig" +source "$(BACKPORT_DIR)/drivers/net/wireless/Kconfig" +source "$(BACKPORT_DIR)/drivers/net/usb/Kconfig" -source "$BACKPORT_DIR/drivers/ssb/Kconfig" -source "$BACKPORT_DIR/drivers/bcma/Kconfig" +source "$(BACKPORT_DIR)/drivers/ssb/Kconfig" +source "$(BACKPORT_DIR)/drivers/bcma/Kconfig" -source "$BACKPORT_DIR/drivers/usb/class/Kconfig" +source "$(BACKPORT_DIR)/drivers/usb/class/Kconfig" -source "$BACKPORT_DIR/drivers/staging/Kconfig" +source "$(BACKPORT_DIR)/drivers/staging/Kconfig"
backport/compat/Kconfig +1 -1
@@ -54,7 +54,7 @@ # config BP_MODULES - option modules + modules bool default MODULES
Signature · 4 lines
2.34.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH 4/4 Makefile.subtrees: document how to update kconfig
In reply to Luis ChamberlainNow that kconfig is a git sub tree document what we need to do to update version of config. We use squash here so we don't carry the kconfig tree update logs in our commit log.
--- Makefile.subtrees | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile.subtrees
Makefile.subtrees new file +10 -0
@@ -0,0 +1,10 @@ +# If you need to use a git subtree, please add it here. +add-kconfig-remote: + git remote add kconfig https://github.com/mcgrof/kconfig.git + +add-kconfig: + git subtree add --prefix=backport/kconf --squash kconfig master + +refresh-kconfig: + git fetch kconfig + git subtree pull --prefix=backport/kconf --squash kconfig master
Signature · 4 lines
2.34.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig
Makefile.subtrees line 3
Quoted 4 lines · Luis Chamberlain
Makefile.subtrees new file +2
-0+add-kconfig-remote: + git remote add kconfig https://github.com/mcgrof/kconfig.git
Does this really make sense?
We could do what we do for a lot of other code, and just copy it from the kernel while generating the backport. Why depend on another project?
johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig
Quoted 10 lines · Johannes Berg
Makefile.subtrees line 3
Quoted 4 lines · Luis Chamberlain
Makefile.subtrees new file +2
-0+add-kconfig-remote: + git remote add kconfig https://github.com/mcgrof/kconfig.gitDoes this really make sense?
We could do what we do for a lot of other code, and just copy it from the kernel while generating the backport. Why depend on another project?
Up to you, it took me 3-4 hours to figure out how to update without breaking things. Now I just do that work once and can benefit from the same effort *once*.
Luis
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig
Quoted 9 lines · Luis Chamberlain
Quoted 8 lines · Johannes Berg
Makefile.subtrees line 3
Quoted 4 lines · Luis Chamberlain
Makefile.subtrees new file +2
-0+add-kconfig-remote: + git remote add kconfig https://github.com/mcgrof/kconfig.gitDoes this really make sense?
Quoted 6 lines
Quoted 2 lines
We could do what we do for a lot of other code, and just copy it from the kernel while generating the backport. Why depend on another project?
Up to you, it took me 3-4 hours to figure out how to update without breaking things. Now I just do that work once and can benefit from the same effort *once*.
Look at it this way, you can apply this and then get upates in the future by just using one command (and folks do the effort as a group) or you can try to do the update now yourself and deal with the effort.
As it is right Thomas was waiting on some update on kconfig on backports, so he can update the integration work. Which way do you prefer to go?
Luis
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig
Quoted 5 lines · Luis Chamberlain
Look at it this way, you can apply this and then get upates in the future by just using one command (and folks do the effort as a group) or you can try to do the update now yourself and deal with the effort.
No no, I meant
- remove the kconfig code
- add a rule to copy the kconfig code from the kernel we're generating the backport from
That might not really be ideal since you'd end up using kconfig from a newer kernel against an older kernel, but we have that either way, even if we take your github tree?
Quoted 3 lines
As it is right Thomas was waiting on some update on kconfig on backports, so he can update the integration work. Which way do you prefer to go?
That just needs patch 1, no? In integration I assume you don't use backports's kconfig at all.
johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig
Quoted 7 lines · Johannes Berg
Quoted 5 lines · Luis Chamberlain
Look at it this way, you can apply this and then get upates in the future by just using one command (and folks do the effort as a group) or you can try to do the update now yourself and deal with the effort.
Quoted 7 lines
No no, I meant
- remove the kconfig code
- add a rule to copy the kconfig code from the kernel we're generating the backport fromThat might not really be ideal since you'd end up using kconfig from a newer kernel against an older kernel,
Yes.
Quoted 2 lines
but we have that either way, even
if we take your github tree?
Indeed.
Quoted 5 lines
Quoted 3 lines
As it is right Thomas was waiting on some update on kconfig on backports, so he can update the integration work. Which way do you prefer to go?
That just needs patch 1, no?
Um, it requires updating kconfig to work with some newer stuff. So no, I think it requires picking either updating kconfig manually or using this git subtree.
Quoted 2 lines
In integration I assume you don't use
backports's kconfig at all.
It does, it uses the kernel target's kconfig.
Luis
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Re: [PATCH 4/4] Makefile.subtrees: document how to update kconfig
In reply to Luis ChamberlainQuoted 29 lines · Luis Chamberlain
Now that kconfig is a git sub tree document what we need to do to update version of config. We use squash here so we don't carry the kconfig tree update logs in our commit log.
Signed-off-by Luis Chamberlain <[email protected]>--- Makefile.subtrees | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile.subtreesMakefile.subtrees new file +10
-0@@ -0,0 +1,10 @@ +# If you need to use a git subtree, please add it here. +add-kconfig-remote: + git remote add kconfig https://github.com/mcgrof/kconfig.git + +add-kconfig: + git subtree add --prefix=backport/kconf --squash kconfig master + +refresh-kconfig: + git fetch kconfig + git subtree pull --prefix=backport/kconf --squash kconfig masterSignature · 1 line
2.34.1
To be clear:
a new maintainer later wishes to update kconfig, all they have to do is:
make -f Makefile.subtrees add-kconfig-remote
make -f Makefile.subtrees refresh-kconfig
After doing this once all you have to do is:
make -f Makefile.subtrees refresh-kconfig
Luis
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Quoted 7 lines · Luis Chamberlain
Updated version of kconfig has always been a challenge. One of the pain points is figuring out how to do this well and what files /
Makefilelines to edit. Part of this is because we don't carry all the kernel's helpers on our kconfig helper. The other aspect which makes it hard is figuring out adjustments of missing files, renames, and updates to things to make things compile.
Yep. When refreshing the integration mode patches[1] I went through the following process:
1) Realize kconfig changes are needed
2) Check if Luis' patches were merged
3) Decide to pull in new kconfig changes manually just to get unblocked
4) Wonder which kconfig files are actually needed.
Quoted 4 lines
The kconfig git subtree effort aims at helping with this. It figures all the above out for you and all we need to do is just declare where we keep the kconfig data on, and then include a
Makefilefrom the git subtree code into our project. That's it.
So, from my point of view this seems like a fine change.
[1] https://lore.kernel.org/all/[email protected]/T/
Signature · 3 lines
thomas -- To unsubscribe from this list: send the line "unsubscribe backports" in