public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shawn <shawnxjin@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] ARM Integrator CP/AP support?
Date: Mon, 25 Oct 2004 15:20:12 -0700	[thread overview]
Message-ID: <c3d0340b0410251520ca5bf6f@mail.gmail.com> (raw)

Hi,

Different core modules can be plugged into Integrator CP or AP board.
Now I have some patches to support different core modules on top of
Integrator CP/AP but has some little problem need help.

My proposal is as follows.

xtract_integrator = $(subst _946es,,$(subst _config,,$1))
xtract_integrator_cm = $(subst integratorap,,$(subst
integratorcp,,$(subst _config,,$1)))

integratorap_config \
integratorap_946es_config \
integratorcp_config \
integratorcp_946es_config :     unconfig
        @cm=$(call xtract_integrator_cm,$@); \
        case $$cm in \
        _946es) cm=arm946es;; \
             *) cm=arm926ejs;; \
        esac; \
        echo "cm=$$cm"; \
        if [ "$$cm" == "arm946es" ]; then \
                echo "#define CONFIG_ARM946ES 1 /* This is an arm946es
CPU core */" >> ./include/con
fig.h ; \
                echo "... configured for ARM946ES"; \
        else \
                echo "#define CONFIG_ARM926EJS 1 /* This is an
arm926ejs CPU core */" >> ./include/c
onfig.h ; \
                echo "... configured for ARM926EJS"; \
        fi; \
        ./mkconfig -a $(call xtract_integrator,$@) arm $$cm $(call
xtract_integrator,$@)

But one more thing I need to change is the u-boot.lds file in
board/integratorcp and board/integratorap.

        .text   :
        {
          cpu/arm926ejs/start.o (.text)
          *(.text)
        }

I need to change the directory cpu/arm926ejs/start.o to some value of
cpu/$$cm/start.o. A simple SED or AWK command may be able to fulfill
this but I'm not familiar either of them. Can someone help?

Thanks,
-Shawn.

                 reply	other threads:[~2004-10-25 22:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=c3d0340b0410251520ca5bf6f@mail.gmail.com \
    --to=shawnxjin@gmail.com \
    --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