2002-10-18 06:52:26 +09:00
|
|
|
#
|
2006-09-02 02:49:50 +09:00
|
|
|
# (C) Copyright 2004-2006
|
2002-10-18 06:52:26 +09:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2004-03-12 09:14:09 +09:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2002-10-18 06:52:26 +09:00
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 23:48:07 +09:00
|
|
|
LIB = $(obj)libcommon.o
|
2002-10-18 06:52:26 +09:00
|
|
|
|
2008-08-30 04:53:57 +09:00
|
|
|
# core
|
2011-07-13 14:11:06 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += main.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-y += command.o
|
|
|
|
COBJS-y += exports.o
|
2009-02-06 11:04:36 +09:00
|
|
|
COBJS-$(CONFIG_SYS_HUSH_PARSER) += hush.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-y += s_record.o
|
2009-02-06 11:04:36 +09:00
|
|
|
COBJS-$(CONFIG_SERIAL_MULTI) += serial.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-y += xyzModem.o
|
|
|
|
|
2008-10-31 20:12:12 +09:00
|
|
|
# core command
|
2008-08-31 06:47:38 +09:00
|
|
|
COBJS-y += cmd_boot.o
|
2010-12-21 08:57:09 +09:00
|
|
|
COBJS-$(CONFIG_CMD_BOOTM) += cmd_bootm.o
|
2009-10-17 07:36:25 +09:00
|
|
|
COBJS-y += cmd_help.o
|
2008-08-31 06:47:38 +09:00
|
|
|
COBJS-y += cmd_nvedit.o
|
2009-10-17 07:36:25 +09:00
|
|
|
COBJS-y += cmd_version.o
|
2008-08-31 06:47:38 +09:00
|
|
|
|
2008-08-30 04:53:57 +09:00
|
|
|
# environment
|
|
|
|
COBJS-y += env_common.o
|
2008-09-11 05:47:58 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
|
2008-09-05 16:19:54 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
|
2010-11-20 23:04:02 +09:00
|
|
|
XCOBJS-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
|
2009-10-27 08:03:32 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
|
2010-11-20 23:04:02 +09:00
|
|
|
XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
|
2009-10-27 08:03:32 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
|
2008-09-11 05:48:04 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
|
2010-05-17 11:57:01 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
|
2012-03-13 08:57:50 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
|
2008-09-11 05:47:59 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
|
2008-09-11 05:47:59 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
|
2008-09-11 05:48:00 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
|
2008-09-11 05:48:00 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
|
2012-03-08 09:33:20 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
|
2008-09-11 05:48:01 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
|
2008-08-30 04:53:57 +09:00
|
|
|
|
|
|
|
# command
|
2008-03-27 07:00:38 +09:00
|
|
|
COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
|
2009-04-02 06:34:12 +09:00
|
|
|
COBJS-$(CONFIG_SOURCE) += cmd_source.o
|
|
|
|
COBJS-$(CONFIG_CMD_SOURCE) += cmd_source.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_BMP) += cmd_bmp.o
|
2008-02-16 21:40:36 +09:00
|
|
|
COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_CACHE) += cmd_cache.o
|
|
|
|
COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o
|
2008-02-19 14:35:17 +09:00
|
|
|
COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
|
2009-03-28 07:26:42 +09:00
|
|
|
COBJS-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_DATE) += cmd_date.o
|
|
|
|
ifdef CONFIG_4xx
|
|
|
|
COBJS-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
|
|
|
|
endif
|
|
|
|
ifdef CONFIG_POST
|
|
|
|
COBJS-$(CONFIG_CMD_DIAG) += cmd_diag.o
|
|
|
|
endif
|
|
|
|
COBJS-$(CONFIG_CMD_DISPLAY) += cmd_display.o
|
|
|
|
COBJS-$(CONFIG_CMD_DTT) += cmd_dtt.o
|
2009-10-17 07:36:25 +09:00
|
|
|
COBJS-$(CONFIG_CMD_ECHO) += cmd_echo.o
|
2008-09-11 05:47:52 +09:00
|
|
|
COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
|
|
|
|
COBJS-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_ELF) += cmd_elf.o
|
2009-10-17 07:36:25 +09:00
|
|
|
COBJS-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_EXT2) += cmd_ext2.o
|
|
|
|
COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o
|
2008-08-31 06:47:41 +09:00
|
|
|
COBJS-$(CONFIG_CMD_FDC)$(CONFIG_CMD_FDOS) += cmd_fdc.o
|
2007-11-27 02:19:12 +09:00
|
|
|
COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_FDOS) += cmd_fdos.o
|
2011-07-16 14:51:00 +09:00
|
|
|
COBJS-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o
|
|
|
|
ifdef CONFIG_FPGA
|
|
|
|
COBJS-$(CONFIG_CMD_FPGA) += cmd_fpga.o
|
|
|
|
endif
|
2011-04-03 17:40:46 +09:00
|
|
|
COBJS-$(CONFIG_CMD_GPIO) += cmd_gpio.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_I2C) += cmd_i2c.o
|
|
|
|
COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o
|
|
|
|
COBJS-$(CONFIG_CMD_IMMAP) += cmd_immap.o
|
2008-08-15 22:24:33 +09:00
|
|
|
COBJS-$(CONFIG_CMD_IRQ) += cmd_irq.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_ITEST) += cmd_itest.o
|
|
|
|
COBJS-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
|
2010-01-07 16:55:54 +09:00
|
|
|
COBJS-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
|
2010-12-27 02:34:49 +09:00
|
|
|
COBJS-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
|
2011-04-21 08:11:38 +09:00
|
|
|
COBJS-$(CONFIG_CMD_LED) += cmd_led.o
|
2008-07-09 23:30:30 +09:00
|
|
|
COBJS-$(CONFIG_CMD_LICENSE) += cmd_license.o
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += cmd_load.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_LOGBUFFER) += cmd_log.o
|
2008-08-31 06:54:58 +09:00
|
|
|
COBJS-$(CONFIG_ID_EEPROM) += cmd_mac.o
|
2011-04-03 10:40:19 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
|
2008-09-11 05:48:05 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MEMORY) += cmd_mem.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
|
2008-09-09 22:45:18 +09:00
|
|
|
COBJS-$(CONFIG_MII) += miiphyutil.o
|
|
|
|
COBJS-$(CONFIG_CMD_MII) += miiphyutil.o
|
Create PHY Lib for U-Boot
Extends the mii_dev structure to participate in a full-blown MDIO and
PHY driver scheme. The mii_dev structure and miiphy calls are modified
in such a way to allow the original mii command and miiphy
infrastructure to work as before, but also to support a new set of APIs
which allow (among other things) sharing of PHY driver code and 10G support
The mii command will continue to support normal PHY management functions
(Clause 22 of 802.3), but will not be changed to support 10G
(Clause 45).
The basic design is similar to PHY Lib from Linux, but simplified for
U-Boot's network and driver infrastructure.
We now have MDIO drivers and PHY drivers
An MDIO driver provides:
read
write
reset
A PHY driver provides:
(optionally): probe
config - initial setup, starting of auto-negotiation
startup - waiting for AN, and reading link state
shutdown - any cleanup needed
The ethernet drivers interact with the PHY Lib using these functions:
phy_connect()
phy_config()
phy_startup()
phy_shutdown()
Each PHY driver can be configured separately, or all at once using
config_phylib_all_drivers.h (added in the patch which adds the drivers)
We also provide generic drivers for Clause 22 (10/100/1000), and
Clause 45 (10G) PHYs.
We also implement phy_reset(), and call it in phy_connect(). Because
phy_reset() is essentially the same as miiphy_reset, but:
a) must support 10G PHYs, and
b) should use the phylib primitives,
we implement miiphy_reset, using phy_reset(), but only when
CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this
way, we save on compile size, even if we don't manage to save code size.
Pulled ethtool.h and mdio.h from:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
782d640afd15af7a1faf01cfe566ca4ac511319d
With many, many deletions so as to enable compilation under u-boot
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Detlev Zundel <dzu@denx.de>
2011-04-08 16:10:27 +09:00
|
|
|
COBJS-$(CONFIG_PHYLIB) += miiphyutil.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MII) += cmd_mii.o
|
2011-03-22 08:03:22 +09:00
|
|
|
ifdef CONFIG_PHYLIB
|
|
|
|
COBJS-$(CONFIG_CMD_MII) += cmd_mdio.o
|
|
|
|
endif
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MISC) += cmd_misc.o
|
|
|
|
COBJS-$(CONFIG_CMD_MMC) += cmd_mmc.o
|
2010-12-24 22:12:21 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-$(CONFIG_MP) += cmd_mp.o
|
2009-03-19 21:30:36 +09:00
|
|
|
COBJS-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
|
2009-10-16 00:48:18 +09:00
|
|
|
COBJS-$(CONFIG_CMD_NAND) += cmd_nand.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_NET) += cmd_net.o
|
2008-08-13 08:40:38 +09:00
|
|
|
COBJS-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
|
2008-02-05 09:26:57 +09:00
|
|
|
COBJS-$(CONFIG_CMD_OTP) += cmd_otp.o
|
2007-09-25 00:05:31 +09:00
|
|
|
ifdef CONFIG_PCI
|
|
|
|
COBJS-$(CONFIG_CMD_PCI) += cmd_pci.o
|
|
|
|
endif
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += cmd_pcmcia.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_PORTIO) += cmd_portio.o
|
2011-09-01 00:37:30 +09:00
|
|
|
COBJS-$(CONFIG_CMD_PXE) += cmd_pxe.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
|
|
|
|
COBJS-$(CONFIG_CMD_REISER) += cmd_reiser.o
|
2008-03-26 23:49:44 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SATA) += cmd_sata.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SF) += cmd_sf.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SCSI) += cmd_scsi.o
|
2011-04-03 10:40:19 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
|
2008-02-15 11:44:42 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SPI) += cmd_spi.o
|
2008-11-28 06:50:32 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
|
2008-02-05 09:26:57 +09:00
|
|
|
COBJS-$(CONFIG_CMD_STRINGS) += cmd_strings.o
|
2007-12-19 22:14:47 +09:00
|
|
|
COBJS-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
|
2011-10-07 08:40:48 +09:00
|
|
|
COBJS-$(CONFIG_CMD_TIME) += cmd_time.o
|
2009-10-17 07:36:25 +09:00
|
|
|
COBJS-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
|
2011-10-16 00:13:34 +09:00
|
|
|
COBJS-$(CONFIG_CMD_TPM) += cmd_tpm.o
|
2009-06-11 02:09:40 +09:00
|
|
|
COBJS-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
|
2008-11-19 19:47:05 +09:00
|
|
|
COBJS-$(CONFIG_CMD_UBI) += cmd_ubi.o
|
2009-03-19 23:35:50 +09:00
|
|
|
COBJS-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
|
2007-09-25 00:05:31 +09:00
|
|
|
COBJS-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
|
2011-04-03 10:40:19 +09:00
|
|
|
COBJS-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
|
2008-08-30 04:53:57 +09:00
|
|
|
ifdef CONFIG_CMD_USB
|
|
|
|
COBJS-y += cmd_usb.o
|
2012-02-14 03:58:17 +09:00
|
|
|
COBJS-y += usb.o usb_hub.o
|
2008-08-30 04:53:57 +09:00
|
|
|
COBJS-$(CONFIG_USB_STORAGE) += usb_storage.o
|
|
|
|
endif
|
2008-01-31 21:19:58 +09:00
|
|
|
COBJS-$(CONFIG_CMD_XIMG) += cmd_ximg.o
|
2007-11-15 20:23:57 +09:00
|
|
|
COBJS-$(CONFIG_YAFFS2) += cmd_yaffs2.o
|
2012-03-15 13:01:34 +09:00
|
|
|
COBJS-$(CONFIG_CMD_SPL) += cmd_spl.o
|
2008-10-31 20:12:12 +09:00
|
|
|
|
|
|
|
# others
|
2011-08-27 03:32:44 +09:00
|
|
|
ifdef CONFIG_DDR_SPD
|
|
|
|
SPD := y
|
|
|
|
endif
|
|
|
|
ifdef CONFIG_SPD_EEPROM
|
|
|
|
SPD := y
|
|
|
|
endif
|
|
|
|
COBJS-$(SPD) += ddr_spd.o
|
Add simple hwconfig infrastructure
This patch implements simple hwconfig infrastructure: an
interface for software knobs to control a hardware.
This is very simple implementation, i.e. it is implemented
via `hwconfig' environment variable. Later we could write
some "hwconfig <enable|disable|list>" commands, ncurses
interface for Award BIOS-like interface, and frame-buffer
interface for AMI GUI[1] BIOS-like interface with mouse
support[2].
Current implementation details/limitations:
1. Doesn't support options dependencies and mutual exclusion.
We can implement this by integrating apt-get[3] into the
u-boot. But I didn't bother yet.
2. Since we don't implement hwconfig command, i.e. we're working
with the environement directly, there is no way to tell that
toggling a particular option will need a reboot to take
an effect. So, for now it's advised to always reboot the
target after modifying hwconfig variable.
3. We support hwconfig options with arguments. For example,
set hwconfig dr_usb:mode=peripheral,phy_type=ulpi
That means:
- dr_usb - enable Dual-Role USB controller;
- dr_usb:mode=peripheral - USB in Function mode;
- dr_usb:phy_type=ulpi - USB should work with ULPI PHYs;
The purpose of this simple implementation is to define some
internal API and then we can continue improving user experience
by adding more mature interface, like hwconfig command with
bells and whistles. Or not adding, if we feel that current
interface fits its needs.
[1] http://en.wikipedia.org/wiki/American_Megatrends
[2] Regarding ncurses and GUI with mouse support -- I'm just
kidding.
[3] The comment regarding apt-get is also a joke, meaning that
dependency tracking could be non-trivial. For example, for
enabling HW feature X we may need to disable Y, and turn Z
into reduced mode (like RMII-only interface for ethernet,
no MII).
It's quite trivial to implement simple cases though.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
2009-06-10 05:25:27 +09:00
|
|
|
COBJS-$(CONFIG_HWCONFIG) += hwconfig.o
|
bootstage: Implement core microsecond boot time measurement
This defines the basics of a new boot time measurement feature. This allows
logging of very accurate time measurements as the boot proceeds, by using
an available microsecond counter.
To enable the feature, define CONFIG_BOOTSTAGE in your board config file.
Also available is CONFIG_BOOTSTAGE_REPORT which will cause a report to be
printed just before handing off to the OS.
Most IDs are not named at this stage. For that I would first like to
renumber them all.
Timer summary in microseconds:
Mark Elapsed Stage
0 0 reset
205,000 205,000 board_init_f
6,053,000 5,848,000 bootm_start
6,053,000 0 id=1
6,058,000 5,000 id=101
6,058,000 0 id=100
6,061,000 3,000 id=103
6,064,000 3,000 id=104
6,093,000 29,000 id=107
6,093,000 0 id=106
6,093,000 0 id=105
6,093,000 0 id=108
7,089,000 996,000 id=7
7,089,000 0 id=15
7,089,000 0 id=8
7,097,000 8,000 start_kernel
Signed-off-by: Simon Glass <sjg@chromium.org>
2012-02-13 22:51:19 +09:00
|
|
|
COBJS-$(CONFIG_BOOTSTAGE) += bootstage.o
|
2008-11-06 23:04:23 +09:00
|
|
|
COBJS-$(CONFIG_CONSOLE_MUX) += iomux.o
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += flash.o
|
2009-12-22 08:40:42 +09:00
|
|
|
COBJS-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
|
2009-05-20 17:35:14 +09:00
|
|
|
COBJS-$(CONFIG_KALLSYMS) += kallsyms.o
|
2008-08-13 08:40:38 +09:00
|
|
|
COBJS-$(CONFIG_LCD) += lcd.o
|
|
|
|
COBJS-$(CONFIG_LYNXKDI) += lynxkdi.o
|
2011-08-23 20:06:49 +09:00
|
|
|
COBJS-$(CONFIG_MENU) += menu.o
|
2009-04-25 21:57:52 +09:00
|
|
|
COBJS-$(CONFIG_MODEM_SUPPORT) += modem.o
|
2008-10-01 22:26:31 +09:00
|
|
|
COBJS-$(CONFIG_UPDATE_TFTP) += update.o
|
2008-08-13 08:40:38 +09:00
|
|
|
COBJS-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
|
2011-07-13 14:11:06 +09:00
|
|
|
endif
|
|
|
|
|
2012-01-31 21:03:57 +09:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
|
|
|
|
endif
|
2011-07-13 14:11:06 +09:00
|
|
|
COBJS-y += console.o
|
2011-10-22 01:29:34 +09:00
|
|
|
COBJS-y += dlmalloc.o
|
2012-01-05 18:53:09 +09:00
|
|
|
COBJS-y += image.o
|
2011-07-13 14:11:06 +09:00
|
|
|
COBJS-y += memsize.o
|
|
|
|
COBJS-y += stdio.o
|
2008-10-31 20:12:12 +09:00
|
|
|
|
2002-10-18 06:52:26 +09:00
|
|
|
|
2008-09-09 23:55:47 +09:00
|
|
|
COBJS := $(sort $(COBJS-y))
|
2010-11-20 23:04:02 +09:00
|
|
|
XCOBJS := $(sort $(XCOBJS-y))
|
|
|
|
SRCS := $(COBJS:.o=.c) $(XCOBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
XOBJS := $(addprefix $(obj),$(XCOBJS))
|
2002-10-18 06:52:26 +09:00
|
|
|
|
|
|
|
CPPFLAGS += -I..
|
|
|
|
|
2010-11-20 23:04:02 +09:00
|
|
|
all: $(LIB) $(XOBJS)
|
2002-10-18 06:52:26 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 23:48:07 +09:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2002-10-18 06:52:26 +09:00
|
|
|
|
2008-09-11 05:48:01 +09:00
|
|
|
$(obj)env_embedded.o: $(src)env_embedded.c $(obj)../tools/envcrc
|
2002-10-18 06:52:26 +09:00
|
|
|
$(CC) $(AFLAGS) -Wa,--no-warn \
|
2006-09-02 02:49:50 +09:00
|
|
|
-DENV_CRC=$(shell $(obj)../tools/envcrc) \
|
2008-09-11 05:48:01 +09:00
|
|
|
-c -o $@ $(src)env_embedded.c
|
2002-10-18 06:52:26 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
$(obj)../tools/envcrc:
|
2003-12-07 04:49:23 +09:00
|
|
|
$(MAKE) -C ../tools
|
|
|
|
|
2002-10-18 06:52:26 +09:00
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-10-18 06:52:26 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
sinclude $(obj).depend
|
2002-10-18 06:52:26 +09:00
|
|
|
|
|
|
|
#########################################################################
|