mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Kbuild: replace legacy <config.h> mechanism
@ 2025-11-28 10:58 Ahmad Fatoum
  2025-11-28 10:58 ` [PATCH 1/4] openrisc: drop <config.h> usage Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Ahmad Fatoum @ 2025-11-28 10:58 UTC (permalink / raw)
  To: barebox

Generation per-board config.h headers is a left-over from times long
past. For most boards it's no longer possible anyway due to multi-image
suppot, but for legacy boards that still use it, let's switch away
existing users from this magic and remove it.

Ahmad Fatoum (4):
  openrisc: drop <config.h> usage
  ARM: drop <config.h> usage
  ppc: drop <config.h> usage
  treewide: drop last remnants of <config.h>

 .../migration-guides/migration-master.rst     |  7 +++++
 Makefile                                      | 19 ++----------
 .../boards/at91rm9200ek/{config.h => board.h} |  4 +--
 arch/arm/boards/at91rm9200ek/lowlevel.c       |  2 +-
 .../boards/phytec-phycard-imx27/lowlevel.c    |  1 -
 arch/arm/cpu/cache-armv8.S                    |  1 -
 arch/arm/cpu/exceptions_32.S                  |  1 -
 arch/arm/cpu/exceptions_64.S                  |  1 -
 arch/arm/lib32/setjmp.S                       |  1 -
 arch/arm/lib64/setjmp.S                       |  1 -
 arch/arm/mach-mxs/lradc-init.c                |  1 -
 arch/arm/mach-mxs/mem-init.c                  |  1 -
 arch/arm/mach-mxs/power-init.c                |  1 -
 arch/arm/mach-omap/am33xx_mux.c               |  1 -
 arch/arm/mach-omap/syslib.c                   |  1 -
 arch/openrisc/Kconfig                         |  2 +-
 arch/openrisc/Makefile                        |  4 +++
 arch/openrisc/boards/generic/config.h         | 25 ----------------
 arch/openrisc/cpu/barebox.lds.S               |  2 +-
 arch/openrisc/cpu/start.S                     |  2 +-
 arch/openrisc/include/asm/config.h            | 15 ++++++++++
 arch/openrisc/lib/board.c                     |  5 ++--
 arch/openrisc/lib/clock.c                     |  1 +
 arch/openrisc/lib/cpuinfo.c                   |  3 +-
 arch/powerpc/boards/freescale-p1010rdb/ddr.c  |  1 +
 arch/powerpc/boards/freescale-p1010rdb/law.c  |  1 +
 .../boards/freescale-p1010rdb/p1010rdb.c      |  1 +
 arch/powerpc/boards/freescale-p1010rdb/tlb.c  |  1 +
 arch/powerpc/boards/freescale-p1022ds/ddr.c   |  1 +
 .../boards/freescale-p1022ds/ics307_clk.c     |  1 +
 arch/powerpc/boards/freescale-p1022ds/law.c   |  1 +
 .../boards/freescale-p1022ds/p1022ds.c        |  1 +
 arch/powerpc/boards/freescale-p1022ds/tlb.c   |  1 +
 arch/powerpc/boards/freescale-p2020rdb/law.c  |  1 +
 .../boards/freescale-p2020rdb/p2020rdb.c      |  1 +
 arch/powerpc/boards/freescale-p2020rdb/tlb.c  |  1 +
 arch/powerpc/boards/owc-da923rc/da923rc.c     |  1 +
 arch/powerpc/boards/owc-da923rc/ddr.c         |  1 +
 arch/powerpc/boards/owc-da923rc/tlb.c         |  1 +
 arch/powerpc/boards/pcm030/config.h           | 30 -------------------
 arch/powerpc/boards/pcm030/pcm030.c           |  1 +
 arch/powerpc/cpu-85xx/start.S                 |  1 -
 arch/powerpc/ddr-8xxx/ddr_setctrl.c           |  2 +-
 arch/powerpc/ddr-8xxx/lc_common_dimm_params.c |  2 +-
 arch/powerpc/ddr-8xxx/main.c                  |  2 +-
 .../config.h => include/asm/board-da923rc.h}  | 25 +++++-----------
 .../config.h => include/asm/board-p1010rdb.h} | 23 +++++---------
 .../config.h => include/asm/board-p1022ds.h}  | 23 +++++---------
 .../config.h => include/asm/board-p2020rdb.h} | 28 +++++------------
 arch/powerpc/include/asm/board-pcm030.h       | 17 +++++++++++
 arch/powerpc/include/asm/config.h             | 12 ++++++++
 arch/powerpc/include/asm/fsl_ifc.h            |  2 +-
 arch/powerpc/include/asm/fsl_lbc.h            |  2 +-
 arch/powerpc/include/asm/status_led.h         |  2 ++
 arch/powerpc/lib/ticks.S                      |  2 +-
 arch/powerpc/mach-mpc5xxx/reginfo.c           |  2 +-
 arch/powerpc/mach-mpc5xxx/speed.c             |  1 +
 arch/powerpc/mach-mpc5xxx/start.S             |  2 +-
 arch/powerpc/mach-mpc85xx/cpu.c               |  2 +-
 arch/powerpc/mach-mpc85xx/cpu_init.c          |  1 +
 arch/powerpc/mach-mpc85xx/cpuid.c             |  2 +-
 arch/powerpc/mach-mpc85xx/speed.c             |  1 +
 common/console.c                              |  1 -
 common/console_simple.c                       |  1 -
 common/memsize.c                              |  1 -
 drivers/mci/imx-esdhc.c                       |  1 -
 drivers/mci/imx.c                             |  1 -
 drivers/mci/omap_hsmmc.c                      |  1 -
 drivers/mci/omap_hsmmc_common.c               |  1 -
 drivers/mtd/nand/raw/nand_fsl_ifc.c           |  1 -
 drivers/mtd/nor/cfi_flash.c                   | 18 ++++++-----
 drivers/net/gianfar.c                         |  2 +-
 drivers/net/gianfar.h                         |  2 +-
 drivers/serial/serial_mpc5xxx.c               |  1 +
 drivers/usb/gadget/function/dfu.c             |  1 -
 include/.gitignore                            |  3 --
 include/common.h                              |  1 -
 include/mach/imx/debug_ll.h                   |  1 -
 lib/image-sparse.c                            |  1 -
 79 files changed, 142 insertions(+), 198 deletions(-)
 create mode 100644 Documentation/migration-guides/migration-master.rst
 rename arch/arm/boards/at91rm9200ek/{config.h => board.h} (98%)
 delete mode 100644 arch/openrisc/boards/generic/config.h
 create mode 100644 arch/openrisc/include/asm/config.h
 delete mode 100644 arch/powerpc/boards/pcm030/config.h
 rename arch/powerpc/{boards/owc-da923rc/config.h => include/asm/board-da923rc.h} (56%)
 rename arch/powerpc/{boards/freescale-p1010rdb/config.h => include/asm/board-p1010rdb.h} (64%)
 rename arch/powerpc/{boards/freescale-p1022ds/config.h => include/asm/board-p1022ds.h} (62%)
 rename arch/powerpc/{boards/freescale-p2020rdb/config.h => include/asm/board-p2020rdb.h} (69%)
 create mode 100644 arch/powerpc/include/asm/board-pcm030.h
 delete mode 100644 include/.gitignore

-- 
2.47.3




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-01 10:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 10:58 [PATCH 0/4] Kbuild: replace legacy <config.h> mechanism Ahmad Fatoum
2025-11-28 10:58 ` [PATCH 1/4] openrisc: drop <config.h> usage Ahmad Fatoum
2025-12-01 10:11   ` Sascha Hauer
2025-11-28 10:58 ` [PATCH 2/4] ARM: " Ahmad Fatoum
2025-11-28 10:58 ` [PATCH 3/4] ppc: " Ahmad Fatoum
2025-11-28 10:58 ` [PATCH 4/4] treewide: drop last remnants of <config.h> Ahmad Fatoum
2025-12-01 10:11 ` [PATCH 0/4] Kbuild: replace legacy <config.h> mechanism Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox