From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Building U-Boot without cmd_ide.c?
Date: Tue, 11 Jul 2006 17:59:42 -0500 [thread overview]
Message-ID: <44B42D5E.6080603@freescale.com> (raw)
I'm working on providing support for the 8349e-mITX, which is another 8349 variant. I'm taking some old patches for U-Boot 1.1.3 and porting them to the latest code. Unfortunately, I don't know a whole lot about the 8349 or U-Boot, so this is a difficult task.
What I have so far won't boot at all. I power on the system and nothing happens. Obviously, I have no idea what's wrong.
So right now, I'm trying to compile U-Boot with as many options turned off as possible. The problem is that the build process tries to compile some files even if support for them has been turned off. For instance, if I undefine CONFIG_COMPACT_FLASH, then I get these errors when I build:
powerpc-unknown-linux-gnu-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFEF00000 -I/temp/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15-powerpc-unknown-linux-gnu/i686-pc-linux2.4/lib/gcc/powerpc-unknown-linux-gnu/3.4.3/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300 -ffixed-r2 -ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o cmd_ide.o cmd_ide.c
cmd_ide.c:128: error: `CFG_IDE_MAXBUS' undeclared here (not in a function)
cmd_ide.c:135: error: empty scalar initializer
cmd_ide.c:135: error: (near initialization for `ide_bus_offset')
cmd_ide.c:146: error: `CFG_IDE_MAXDEVICE' undeclared here (not in a function)
cmd_ide.c: In function `ide_init':
cmd_ide.c:618: error: `CFG_ATA_REG_OFFSET' undeclared (first use in this function)
cmd_ide.c:618: error: (Each undeclared identifier is reported only once
cmd_ide.c:618: error: for each function it appears in.)
cmd_ide.c: In function `ide_outb':
cmd_ide.c:810: error: `CFG_ATA_BASE_ADDR' undeclared (first use in this function)
cmd_ide.c: In function `ide_inb':
cmd_ide.c:828: error: `CFG_ATA_BASE_ADDR' undeclared (first use in this function)
cmd_ide.c: In function `input_swap_data':
cmd_ide.c:885: error: `CFG_ATA_BASE_ADDR' undeclared (first use in this function)
cmd_ide.c:885: error: `CFG_ATA_DATA_OFFSET' undeclared (first use in this function)
cmd_ide.c: In function `output_data':
cmd_ide.c:930: error: `CFG_ATA_BASE_ADDR' undeclared (first use in this function)
cmd_ide.c:930: error: `CFG_ATA_DATA_OFFSET' undeclared (first use in this function)
cmd_ide.c: In function `input_data':
cmd_ide.c:978: error: `CFG_ATA_BASE_ADDR' undeclared (first use in this function)
cmd_ide.c:978: error: `CFG_ATA_DATA_OFFSET' undeclared (first use in this function)
cmd_ide.c: In function `ide_ident':
cmd_ide.c:1062: error: `CFG_ATA_REG_OFFSET' undeclared (first use in this function)
cmd_ide.c: In function `ide_read':
cmd_ide.c:1270: error: `CFG_ATA_REG_OFFSET' undeclared (first use in this function)
cmd_ide.c: In function `ide_write':
cmd_ide.c:1398: error: `CFG_ATA_REG_OFFSET' undeclared (first use in this function)
cmd_ide.c: In function `ide_wait':
cmd_ide.c:1505: error: `CFG_ATA_REG_OFFSET' undeclared (first use in this function)
cmd_ide.c: At top level:
cmd_ide.c:128: error: storage size of `ide_bus_offset' isn't known
cmd_ide.c:141: error: storage size of `ide_bus_ok' isn't known
cmd_ide.c:146: error: storage size of `ide_dev_desc' isn't known
cmd_ide.c:141: warning: 'ide_bus_ok' defined but not used
make[1]: *** [cmd_ide.o] Error 1
make[1]: Leaving directory `/temp/u-boot/common'
make: *** [common/libcommon.a] Error 2
The reason these CFG_ATA_xxxx options are undefined is because they only get defined if CONFIG_COMPACT_FLASH is defined. Is there a reason why cmd_ide.c is being compiled? Do I really need it? Should I modified the Makefile to not build cmd_ide.c if CONFIG_COMPACT_FLASH is undefined?
--
Timur Tabi
Linux Kernel Developer @ Freescale
next reply other threads:[~2006-07-11 22:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 22:59 Timur Tabi [this message]
2006-07-11 23:28 ` [U-Boot-Users] Building U-Boot without cmd_ide.c? Wolfgang Denk
2006-07-12 15:37 ` Timur Tabi
2006-07-17 13:41 ` Sam Song
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=44B42D5E.6080603@freescale.com \
--to=timur@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