Skip to contentSkip to conversation

ARM Integrator CP/AP support?

U-Boot-Users Shawn 1 participant 1 message Oct 25, 2004

lore
Share & tools
lore

Shawn

author
#0 lore 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.