mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 16:01:27 +00:00
boot: Remove unused NEEDS_MANUAL_RELOC code bits
The last user of the NEEDS_MANUAL_RELOC has been removed in commit
26af162ac8
("arch: m68k: Implement relocation")
Remove now unused NEEDS_MANUAL_RELOC code.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
3cba5a115f
commit
446d664303
3 changed files with 0 additions and 56 deletions
|
@ -609,19 +609,5 @@ int boot_selected_os(int argc, char *const argv[], int state,
|
||||||
|
|
||||||
boot_os_fn *bootm_os_get_boot_func(int os)
|
boot_os_fn *bootm_os_get_boot_func(int os)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NEEDS_MANUAL_RELOC
|
|
||||||
static bool relocated;
|
|
||||||
|
|
||||||
if (!relocated) {
|
|
||||||
int i;
|
|
||||||
|
|
||||||
/* relocate boot function table */
|
|
||||||
for (i = 0; i < ARRAY_SIZE(boot_os); i++)
|
|
||||||
if (boot_os[i] != NULL)
|
|
||||||
boot_os[i] += gd->reloc_off;
|
|
||||||
|
|
||||||
relocated = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return boot_os[os];
|
return boot_os[os];
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,20 +57,6 @@ struct checksum_algo *image_get_checksum_algo(const char *full_name)
|
||||||
int i;
|
int i;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_NEEDS_MANUAL_RELOC)) {
|
|
||||||
static bool done;
|
|
||||||
|
|
||||||
if (!done) {
|
|
||||||
done = true;
|
|
||||||
for (i = 0; i < ARRAY_SIZE(checksum_algos); i++) {
|
|
||||||
struct checksum_algo *algo = &checksum_algos[i];
|
|
||||||
|
|
||||||
MANUAL_RELOC(algo->name);
|
|
||||||
MANUAL_RELOC(algo->calculate);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(checksum_algos); i++) {
|
for (i = 0; i < ARRAY_SIZE(checksum_algos); i++) {
|
||||||
name = checksum_algos[i].name;
|
name = checksum_algos[i].name;
|
||||||
/* Make sure names match and next char is a comma */
|
/* Make sure names match and next char is a comma */
|
||||||
|
@ -87,20 +73,6 @@ struct crypto_algo *image_get_crypto_algo(const char *full_name)
|
||||||
struct crypto_algo *crypto, *end;
|
struct crypto_algo *crypto, *end;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_NEEDS_MANUAL_RELOC)) {
|
|
||||||
static bool done;
|
|
||||||
|
|
||||||
if (!done) {
|
|
||||||
done = true;
|
|
||||||
crypto = ll_entry_start(struct crypto_algo, cryptos);
|
|
||||||
end = ll_entry_end(struct crypto_algo, cryptos);
|
|
||||||
for (; crypto < end; crypto++) {
|
|
||||||
MANUAL_RELOC(crypto->name);
|
|
||||||
MANUAL_RELOC(crypto->verify);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Move name to after the comma */
|
/* Move name to after the comma */
|
||||||
name = strchr(full_name, ',');
|
name = strchr(full_name, ',');
|
||||||
if (!name)
|
if (!name)
|
||||||
|
|
14
cmd/bootm.c
14
cmd/bootm.c
|
@ -123,20 +123,6 @@ int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||||
int states;
|
int states;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef CONFIG_NEEDS_MANUAL_RELOC
|
|
||||||
static int relocated = 0;
|
|
||||||
|
|
||||||
if (!relocated) {
|
|
||||||
int i;
|
|
||||||
|
|
||||||
/* relocate names of sub-command table */
|
|
||||||
for (i = 0; i < ARRAY_SIZE(cmd_bootm_sub); i++)
|
|
||||||
cmd_bootm_sub[i].name += gd->reloc_off;
|
|
||||||
|
|
||||||
relocated = 1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* determine if we have a sub command */
|
/* determine if we have a sub command */
|
||||||
argc--; argv++;
|
argc--; argv++;
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue