mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Cc: Jan Weitzel <j.weitzel@phytec.de>,
	Vicente Bergas <vicencb@gmail.com>,
	Bo Shen <voice.shen@atmel.com>,
	Matthias Kaehlcke <matthias@kaehlcke.net>,
	Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Subject: [PATCH 15/15] ARM: drop TEXT_BASE
Date: Thu, 25 Apr 2024 13:54:39 +0200	[thread overview]
Message-ID: <20240425115439.2269239-16-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20240425115439.2269239-1-s.hauer@pengutronix.de>

With all ARM boards being relocatable TEXT_BASE is always defined to 0x0
and can be dropped. The ARCH_TEXT_BASE Kconfig symbol is also no longer
used and can be removed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/Kconfig                  | 4 ----
 arch/arm/Makefile                 | 4 ----
 arch/arm/boards/versatile/Kconfig | 4 ----
 arch/arm/lib32/barebox.lds.S      | 2 +-
 arch/arm/lib64/barebox.lds.S      | 2 +-
 arch/arm/mach-at91/Kconfig        | 8 --------
 arch/arm/mach-bcm283x/Kconfig     | 4 ----
 arch/arm/mach-mvebu/Kconfig       | 7 -------
 arch/arm/mach-mxs/Kconfig         | 9 ---------
 arch/arm/mach-omap/Kconfig        | 5 -----
 arch/arm/mach-rockchip/Kconfig    | 5 -----
 arch/arm/mach-socfpga/Kconfig     | 4 ----
 arch/arm/mach-tegra/Kconfig       | 4 ----
 arch/arm/mach-versatile/Kconfig   | 3 ---
 arch/arm/mach-vexpress/Kconfig    | 4 ----
 arch/arm/mach-zynq/Kconfig        | 4 ----
 16 files changed, 2 insertions(+), 71 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 6a6d7955d1..b9883b30f7 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -24,10 +24,6 @@ config ARM_USE_COMPRESSED_DTB
        bool
        select USE_COMPRESSED_DTB
 
-config TEXT_BASE
-	hex
-	default 0x0
-
 menu "System Type"
 
 config ARCH_STM32
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index f98770f66a..f91fcb0454 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -102,10 +102,6 @@ machine-$(CONFIG_ARCH_TEGRA)		+= tegra
 machine-$(CONFIG_ARCH_ZYNQ)		+= zynq
 machine-$(CONFIG_ARCH_ZYNQMP)		+= zynqmp
 
-TEXT_BASE = $(CONFIG_TEXT_BASE)
-
-KBUILD_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE)
-
 # Add cleanup flags
 KBUILD_CPPFLAGS += -fdata-sections -ffunction-sections
 LDFLAGS_barebox += --gc-sections -pie
diff --git a/arch/arm/boards/versatile/Kconfig b/arch/arm/boards/versatile/Kconfig
index 66492404e0..5cb3061635 100644
--- a/arch/arm/boards/versatile/Kconfig
+++ b/arch/arm/boards/versatile/Kconfig
@@ -2,8 +2,4 @@
 
 if MACH_VERSATILEPB
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x01000000
-
 endif
diff --git a/arch/arm/lib32/barebox.lds.S b/arch/arm/lib32/barebox.lds.S
index ad9e9e84ef..97f41f72fe 100644
--- a/arch/arm/lib32/barebox.lds.S
+++ b/arch/arm/lib32/barebox.lds.S
@@ -83,5 +83,5 @@ SECTIONS
 #endif
 
 	_end = .;
-	_barebox_image_size = __bss_start - TEXT_BASE;
+	_barebox_image_size = __bss_start;
 }
diff --git a/arch/arm/lib64/barebox.lds.S b/arch/arm/lib64/barebox.lds.S
index 2479646d9d..1d0cc6dc54 100644
--- a/arch/arm/lib64/barebox.lds.S
+++ b/arch/arm/lib64/barebox.lds.S
@@ -53,5 +53,5 @@ SECTIONS
 	.bss : { *(.bss*) }
 	.__bss_stop :  { *(.__bss_stop) }
 	_end = .;
-	_barebox_image_size = __bss_start - TEXT_BASE;
+	_barebox_image_size = __bss_start;
 }
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index b68a9f4e25..0b75d665d0 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -147,14 +147,6 @@ config SOC_SAMA7G5
 	help
 	  Select this if you are using one of Microchip's SAMA7G5 family SoC.
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x73f00000 if SOC_AT91SAM9G45
-	default 0x26f00000 if SOC_AT91SAM9X5
-	default 0x20f00000 if SOC_AT91RM9200
-	default 0x21f00000 if MACH_ANIMEO_IP
-	default 0x23f00000
-
 config HAVE_NAND_ATMEL_BUSWIDTH_16
 	bool
 
diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig
index f7434d2f5c..defccf8362 100644
--- a/arch/arm/mach-bcm283x/Kconfig
+++ b/arch/arm/mach-bcm283x/Kconfig
@@ -2,10 +2,6 @@
 
 if ARCH_BCM283X
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x0
-
 config MACH_RPI_COMMON
 	bool
 	select ARM_USE_COMPRESSED_DTB
diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 1b26148434..ed1302af65 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -2,13 +2,6 @@
 
 if ARCH_MVEBU
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x2000000 if ARCH_ARMADA_370
-	default 0x2000000 if ARCH_ARMADA_XP
-	default 0x2000000 if ARCH_DOVE
-	default 0x2000000 if ARCH_KIRKWOOD
-
 config ARCH_ARMADA_370
 	bool
 	select CPU_V7
diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig
index c8ef2c62af..0219196794 100644
--- a/arch/arm/mach-mxs/Kconfig
+++ b/arch/arm/mach-mxs/Kconfig
@@ -2,15 +2,6 @@
 
 if ARCH_MXS
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x41000000 if MACH_MX23EVK
-	default 0x42000000 if MACH_CHUMBY
-	default 0x42000000 if MACH_IMX233_OLINUXINO
-	default 0x47000000 if MACH_TX28
-	default 0x47000000 if MACH_MX28EVK
-	default 0x47000000 if MACH_CFA10036
-
 config ARCH_MXS_OF_SUPPORT
 	bool
 	select COMMON_CLK_OF_PROVIDER
diff --git a/arch/arm/mach-omap/Kconfig b/arch/arm/mach-omap/Kconfig
index 6ddbb6e572..7b0eade65a 100644
--- a/arch/arm/mach-omap/Kconfig
+++ b/arch/arm/mach-omap/Kconfig
@@ -100,11 +100,6 @@ config BAREBOX_UPDATE_AM33XX_EMMC
 	help
 	  Say Y for barebox update eMMC handler.
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x80e80000 if MACH_OMAP343xSDP
-	default 0x80e80000 if MACH_BEAGLE
-
 config AM33XX_NET_BOOT
 	bool "enable AM335x network boot"
 	select ENVIRONMENT_VARIABLES
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 1421b9e257..901d4a9ae0 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -3,11 +3,6 @@
 menu "Rockchip Features"
 	depends on ARCH_ROCKCHIP
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x68000000 if ARCH_RK3188
-	default 0x0
-
 config RK_TIMER
 	hex
 	default 1
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
index 75f03d3f6a..a4d7177797 100644
--- a/arch/arm/mach-socfpga/Kconfig
+++ b/arch/arm/mach-socfpga/Kconfig
@@ -2,10 +2,6 @@
 
 if ARCH_SOCFPGA
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x0
-
 config ARCH_SOCFPGA_XLOAD
 	bool
 	prompt "Build preloader image"
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index cc256f584a..3e25758353 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -2,10 +2,6 @@
 
 if ARCH_TEGRA
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x0
-
 # ---------------------------------------------------------
 
 config ARCH_TEGRA_2x_SOC
diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig
index 89f50c270e..c72673cbf0 100644
--- a/arch/arm/mach-versatile/Kconfig
+++ b/arch/arm/mach-versatile/Kconfig
@@ -2,9 +2,6 @@
 
 if ARCH_VERSATILE
 
-config ARCH_TEXT_BASE
-	default 0x02000000
-
 config MACH_VERSATILEPB
 	bool
 	default y
diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig
index 1b89d0edf9..eb0520b8d4 100644
--- a/arch/arm/mach-vexpress/Kconfig
+++ b/arch/arm/mach-vexpress/Kconfig
@@ -2,10 +2,6 @@
 
 if ARCH_VEXPRESS
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x0
-
 config MACH_VEXPRESS
 	bool "ARM Vexpress"
 
diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig
index 2403c2edc3..27136a65fc 100644
--- a/arch/arm/mach-zynq/Kconfig
+++ b/arch/arm/mach-zynq/Kconfig
@@ -2,10 +2,6 @@
 
 if ARCH_ZYNQ
 
-config ARCH_TEXT_BASE
-	hex
-	default 0x0
-
 config ZYNQ_DEBUG_LL_UART_BASE
 	hex
 	default 0xe0001000 if MACH_ZEDBOARD
-- 
2.39.2




  parent reply	other threads:[~2024-04-25 12:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 11:54 [PATCH 00/15] ARM: remove non PBL ARM boards and sub architectures Sascha Hauer
2024-04-25 11:54 ` [PATCH 01/15] ARM: move HAVE_PBL_MULTI_IMAGES up to ARCH_MULTIARCH Sascha Hauer
2024-04-25 11:54 ` [PATCH 02/15] ARM: move OFTREE and OFDEVICE up one level Sascha Hauer
2024-04-25 11:54 ` [PATCH 03/15] ARM: remove uemd architecure Sascha Hauer
2024-04-25 11:54 ` [PATCH 04/15] ARM: remove ep93xx Sascha Hauer
2024-04-25 11:54 ` [PATCH 05/15] ARM: remove canon-a1100 support Sascha Hauer
2024-04-25 11:54 ` [PATCH 06/15] ARM: remove davinci Sascha Hauer
2024-04-25 11:54 ` [PATCH 07/15] ARM: remove PXA boards Sascha Hauer
2024-04-25 11:54 ` [PATCH 08/15] ARM: remove nomadik Sascha Hauer
2024-04-25 11:54 ` [PATCH 09/15] ARM: remove non PBL OMAP boards Sascha Hauer
2024-04-25 11:54 ` [PATCH 10/15] ARM: remove non PBL Atmel boards Sascha Hauer
2024-04-25 16:56   ` Sam Ravnborg
2024-04-26 10:59     ` Sascha Hauer
2024-04-26 11:49       ` Sam Ravnborg
2024-04-25 11:54 ` [PATCH 11/15] ARM: move HAVE_PBL_MULTI_IMAGES to toplevel Sascha Hauer
2024-04-25 11:54 ` [PATCH 12/15] ARM: drop non PBL support Sascha Hauer
2024-04-25 11:54 ` [PATCH 13/15] ARM: drop barebox_arm_head() Sascha Hauer
2024-04-25 11:54 ` [PATCH 14/15] ARM: make relocatable mandatory Sascha Hauer
2024-04-25 11:54 ` Sascha Hauer [this message]
2024-04-30  5:44 ` [PATCH 00/15] ARM: remove non PBL ARM boards and sub architectures 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=20240425115439.2269239-16-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=j.weitzel@phytec.de \
    --cc=matthias@kaehlcke.net \
    --cc=plagnioj@jcrosoft.com \
    --cc=vicencb@gmail.com \
    --cc=voice.shen@atmel.com \
    /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