From: Gabor Juhos <juhosg@openwrt.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just "malta"
Date: Thu, 24 Oct 2013 12:04:52 +0200 [thread overview]
Message-ID: <5268F0C4.6040109@openwrt.org> (raw)
In-Reply-To: <1382607073-10841-1-git-send-email-paul.burton@imgtec.com>
2013.10.24. 11:31 keltez?ssel, Paul Burton ?rta:
> This is in preparation for adapting this board to function correctly on
> a physical MIPS Malta board. The board is moved into an "imgtec" vendor
> directory at the same time in order to ready us for any other boards
> supported by Imagination in the future.
>
> Signed-off-by: Paul Burton <paul.burton@imgtec.com>
> ---
> Changes in v2:
> - move to an imgtec vendor directory to reduce churn should other
> Imagination boards be added later
> - enable rename detection for the patch
> ---
> arch/mips/lib/bootm.c | 12 ++++++------
> board/{qemu-malta => imgtec/malta}/Makefile | 0
> board/{qemu-malta => imgtec/malta}/lowlevel_init.S | 0
> board/{qemu-malta/qemu-malta.c => imgtec/malta/malta.c} | 0
> boards.cfg | 4 ++--
> include/configs/{qemu-malta.h => malta.h} | 2 +-
> 6 files changed, 9 insertions(+), 9 deletions(-)
> rename board/{qemu-malta => imgtec/malta}/Makefile (100%)
> rename board/{qemu-malta => imgtec/malta}/lowlevel_init.S (100%)
> rename board/{qemu-malta/qemu-malta.c => imgtec/malta/malta.c} (100%)
> rename include/configs/{qemu-malta.h => malta.h} (98%)
>
> diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
> index 66340ea..1febf29 100644
> --- a/arch/mips/lib/bootm.c
> +++ b/arch/mips/lib/bootm.c
> @@ -17,10 +17,10 @@ DECLARE_GLOBAL_DATA_PTR;
> #define LINUX_MAX_ENVS 256
> #define LINUX_MAX_ARGS 256
>
> -#if defined(CONFIG_QEMU_MALTA)
> -#define mips_boot_qemu_malta 1
> +#if defined(CONFIG_MALTA)
> +#define mips_boot_malta 1
> #else
> -#define mips_boot_qemu_malta 0
> +#define mips_boot_malta 0
> #endif
>
> static int linux_argc;
> @@ -139,7 +139,7 @@ static void linux_env_set(const char *env_name, const char *env_val)
> strcpy(linux_env_p, env_name);
> linux_env_p += strlen(env_name);
>
> - if (mips_boot_qemu_malta) {
> + if (mips_boot_malta) {
> linux_env_p++;
> linux_env[++linux_env_idx] = linux_env_p;
> } else {
> @@ -196,7 +196,7 @@ static void boot_prep_linux(bootm_headers_t *images)
> if (cp)
> linux_env_set("eth1addr", cp);
>
> - if (mips_boot_qemu_malta)
> + if (mips_boot_malta)
> linux_env_set("modetty0", "38400n8r");
> }
>
> @@ -210,7 +210,7 @@ static void boot_jump_linux(bootm_headers_t *images)
>
> bootstage_mark(BOOTSTAGE_ID_RUN_OS);
>
> - if (mips_boot_qemu_malta)
> + if (mips_boot_malta)
> linux_extra = gd->ram_size;
>
> /* we assume that the kernel is in place */
The changes in bootm.c are not strictly related to the rename. It would be
better to do these in a separate patch.
<...>
> diff --git a/include/configs/qemu-malta.h b/include/configs/malta.h
> similarity index 98%
> rename from include/configs/qemu-malta.h
> rename to include/configs/malta.h
> index 4e7ad33..f6f6cc1 100644
> --- a/include/configs/qemu-malta.h
> +++ b/include/configs/malta.h
> @@ -13,7 +13,7 @@
> /*
> * System configuration
> */
> -#define CONFIG_QEMU_MALTA
> +#define CONFIG_MALTA
This change also should be done in a separate patch. Additionaly,
CONFIG_QEMU_MALTA is used in arch/mips/cpu/mips32/start.S so it should be
changed as well.
-Gabor
next prev parent reply other threads:[~2013-10-24 10:04 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 10:07 [U-Boot] [PATCH 00/15] MIPS Malta board support Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 01/15] mips32: detect L1 cache sizes if they're not defined Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 02/15] pcnet: code style cleanup Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 03/15] pcnet: s/le16_to_cpu/cpu_to_le16/ in pcnet_send Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 04/15] pcnet: add cache flushing & invalidation Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 05/15] pcnet: enable the NOUFLO feature Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 06/15] pci.h: allow inclusion in assembly source Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 07/15] qemu-malta: rename to just "malta" Paul Burton
2013-10-23 22:50 ` Daniel Schwierzeck
2013-10-24 9:31 ` [U-Boot] [PATCH v2 " Paul Burton
2013-10-24 10:04 ` Gabor Juhos [this message]
2013-10-24 10:10 ` Paul Burton
2013-10-24 10:43 ` Gabor Juhos
2013-10-24 10:54 ` Paul Burton
2013-10-24 11:51 ` Daniel Schwierzeck
2013-10-24 12:06 ` Gabor Juhos
2013-10-24 10:11 ` [U-Boot] [PATCH v3 " Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 08/15] malta: setup super I/O UARTs Paul Burton
2013-10-24 9:32 ` [U-Boot] [PATCH v2 " Paul Burton
2013-10-23 10:07 ` [U-Boot] [PATCH 09/15] malta: support for coreFPGA6 boards Paul Burton
2013-10-23 22:53 ` Daniel Schwierzeck
2013-10-24 9:33 ` [U-Boot] [PATCH v2 " Paul Burton
2013-10-24 12:14 ` Gabor Juhos
2013-10-24 9:47 ` [U-Boot] [PATCH " Paul Burton
2013-10-23 10:08 ` [U-Boot] [PATCH 10/15] malta: display "U-boot" on the LCD screen Paul Burton
2013-10-24 9:34 ` [U-Boot] [PATCH v2 " Paul Burton
2013-10-23 10:08 ` [U-Boot] [PATCH 11/15] malta: enable CONFIG_PCNET_79C973, PCNET_HAS_PROM, CONFIG_CMD_DHCP Paul Burton
2013-10-23 10:08 ` [U-Boot] [PATCH 12/15] malta: remove cache size definitions Paul Burton
2013-10-23 10:08 ` [U-Boot] [PATCH 13/15] malta: disable L2 caches Paul Burton
2013-10-24 9:34 ` [U-Boot] [PATCH v2 " Paul Burton
2013-10-23 10:08 ` [U-Boot] [PATCH 14/15] malta: add script & instructions to flash U-boot Paul Burton
2013-10-23 22:54 ` Daniel Schwierzeck
2013-10-24 9:35 ` [U-Boot] [PATCH v2 " Paul Burton
2013-10-23 10:11 ` [U-Boot] [PATCH 15/15] malta: add myself to maintainers Paul Burton
2013-10-24 9:36 ` [U-Boot] [PATCH v2 " Paul Burton
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=5268F0C4.6040109@openwrt.org \
--to=juhosg@openwrt.org \
--cc=u-boot@lists.denx.de \
/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