public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] ARM Integrator CP/AP support?
@ 2004-10-25 22:20 Shawn
  0 siblings, 0 replies; only message in thread
From: Shawn @ 2004-10-25 22:20 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-25 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 22:20 [U-Boot-Users] ARM Integrator CP/AP support? Shawn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox