Richard Marko | 6bb4603 | 2023-10-18 19:33:46 +0200 | [diff] [blame^] | 1 | From 48ad5c23680c81614663e09c6586ebeb26bf8c18 Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Marko <srk@48.io> |
| 3 | Date: Mon, 16 Oct 2023 15:26:33 +0200 |
| 4 | Subject: [PATCH] util/kconfig: chmod +w before savedefconfig |
| 5 | |
| 6 | This prevents a headscratcher when .config in root doesn't have a write |
| 7 | permission bit set which causes a build failure of savedefconfig |
| 8 | not able to write to copied file, for example |
| 9 | |
| 10 | *** Error while saving defconfig to: |
| 11 | build/mainboard/emulation/qemu-i440fx/cbfs-file.eU5E0t.out.tmp2 |
| 12 | |
| 13 | Change-Id: I2e7d35c9f6e8add3e7438d163850bc5fda5a99b2 |
| 14 | Signed-off-by: Richard Marko <srk@48.io> |
| 15 | --- |
| 16 | util/kconfig/Makefile.inc | 1 + |
| 17 | 1 file changed, 1 insertion(+) |
| 18 | |
| 19 | Index: kconfig/Makefile.inc |
| 20 | =================================================================== |
| 21 | --- kconfig.orig/Makefile.inc |
| 22 | +++ kconfig/Makefile.inc |
| 23 | @@ -34,6 +34,7 @@ oldconfig: KCONFIG_STRICT= |
| 24 | |
| 25 | savedefconfig: $(objk)/conf |
| 26 | cp $(DOTCONFIG) $(DEFCONFIG) |
| 27 | + chmod +w $(DEFCONFIG) |
| 28 | $< --savedefconfig=$(DEFCONFIG) $(KBUILD_KCONFIG) |
| 29 | |
| 30 | FORCE: |