mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/4] Kbuild: replace legacy <config.h> mechanism
Date: Fri, 28 Nov 2025 11:58:40 +0100	[thread overview]
Message-ID: <20251128110005.3336591-1-a.fatoum@pengutronix.de> (raw)

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




             reply	other threads:[~2025-11-28 11:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-28 10:58 Ahmad Fatoum [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251128110005.3336591-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox