public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5][v2] powerpc/mpc85xx:No NOR boot, do not compile IFC errata A003399
Date: Wed, 10 Apr 2013 15:09:28 -0500	[thread overview]
Message-ID: <1365624568.8381.13@snotra> (raw)
In-Reply-To: <5164E310.9090801@freescale.com> (from prabhakar@freescale.com on Tue Apr  9 22:57:04 2013)

On 04/09/2013 10:57:04 PM, Prabhakar Kushwaha wrote:
> On 04/10/2013 05:11 AM, Scott Wood wrote:
>> On 04/08/2013 11:56:25 PM, Prabhakar Kushwaha wrote:
>>> I tried just after CONFIG_P1010 but it is giving compilation error.
>> 
>> What error?
> 
> 
> make[1]: Entering directory  
> `/home/b32579/Workspace/MERGE/OPENSRC/U-BOOT/u-boot'
> /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc  
> -DDO_DEPS_ONLY \
>         -g  -Os   -fpic -mrelocatable -ffunction-sections  
> -fdata-sections -meabi -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x11000000  
> -I/home/b32579/Workspace/MERGE/OPENSRC/U-BOOT/u-boot/include  
> -fno-builtin -ffreestanding -nostdinc -isystem  
> /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/lib/gcc/powerpc-linux-gnu/4.5.1/include  
> -pipe  -DCONFIG_PPC -D__powerpc__ -ffixed-r2 -Wa,-me500 -msoft-float  
> -mno-string  -mno-spe -Wall -Wstrict-prototypes -fno-stack-protector  
> -Wno-format-nonliteral -Wno-format-security    \
>         -o lib/asm-offsets.s lib/asm-offsets.c -c -S
> In file included from  
> /home/b32579/Workspace/MERGE/OPENSRC/U-BOOT/u-boot/include/common.h:174:0,
>                  from lib/asm-offsets.c:18:
> /home/b32579/Workspace/MERGE/OPENSRC/U-BOOT/u-boot/include/asm/global_data.h:98:21:  
> error: 'CONFIG_SYS_NUM_TLBCAMS' undeclared here (not in a function)
> make[1]: *** [lib/asm-offsets.s] Error 1
> 
> because of these defines in config_mpc85xx.h
> #if defined(CONFIG_E500MC)
> #define CONFIG_SYS_NUM_TLBCAMS        64
> #elif defined(CONFIG_E500)
> #define CONFIG_SYS_NUM_TLBCAMS        16
> #endif

You also need CONFIG_E500 defined before you include config_mpc85xx.h  
-- although it might be better to define CONFIG_E500[MC] in  
config_mpc85xx.h based on the SoC type, and move the  
CONFIG_SYS_NUM_TLBCAMS setting to the bottom of the file.

>>> Just to mention, I need to provide relative path in order to  
>>> compile.
>> 
>> What specifically did you try and what error did it produce?
> 
> I did not try anything.

If you didn't try a normal include patch and see a failure, why do you  
say you need to provide a relative path?

#include <asm/config_mpc85xx.h> works for me.

-Scott

      reply	other threads:[~2013-04-10 20:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22  7:07 [U-Boot] [PATCH 1/5][v2] powerpc/mpc85xx:No NOR boot, do not compile IFC errata A003399 Prabhakar Kushwaha
2013-04-05 20:33 ` Scott Wood
2013-04-06  2:28   ` Prabhakar Kushwaha
2013-04-09  0:39     ` Scott Wood
2013-04-09  4:56       ` Prabhakar Kushwaha
2013-04-09 23:41         ` Scott Wood
2013-04-10  3:57           ` Prabhakar Kushwaha
2013-04-10 20:09             ` Scott Wood [this message]

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=1365624568.8381.13@snotra \
    --to=scottwood@freescale.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