mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
0a823aa2a8
The 'license' command includes the U-Boot license (GPLv2) into the actual bootloader binary. The license text can be shown interactively at the U-Boot commandline. For products where the commandline can actually be accessed by the end user, this helps to prevent inadvertent GPL violations, since the GPLv2 license text can no longer be 'forgotten' to be included into the product. The 'license' command can be enabled by CONFIG_CMD_LICENSE. Signed-off-by: Harald Welte <laforge@openmoko.org>
180 lines
5.3 KiB
Makefile
180 lines
5.3 KiB
Makefile
#
|
|
# (C) Copyright 2004-2006
|
|
# 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
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# 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
|
|
|
|
LIB = $(obj)libcommon.a
|
|
|
|
AOBJS =
|
|
|
|
COBJS-y += main.o
|
|
COBJS-$(CONFIG_CMD_BEDBUG) += bedbug.o
|
|
COBJS-y += circbuf.o
|
|
COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
|
|
COBJS-y += cmd_autoscript.o
|
|
COBJS-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
|
|
COBJS-$(CONFIG_CMD_BEDBUG) += cmd_bedbug.o
|
|
COBJS-$(CONFIG_CMD_BMP) += cmd_bmp.o
|
|
COBJS-y += image.o
|
|
COBJS-y += gunzip.o
|
|
COBJS-y += cmd_boot.o
|
|
COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
|
|
COBJS-y += cmd_bootm.o
|
|
COBJS-$(CONFIG_CMD_CACHE) += cmd_cache.o
|
|
COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o
|
|
COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
|
|
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_DOC) += cmd_doc.o
|
|
COBJS-$(CONFIG_CMD_DTT) += cmd_dtt.o
|
|
COBJS-y += cmd_eeprom.o
|
|
COBJS-$(CONFIG_CMD_ELF) += cmd_elf.o
|
|
COBJS-$(CONFIG_CMD_EXT2) += cmd_ext2.o
|
|
COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o
|
|
COBJS-y += cmd_fdc.o
|
|
COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
|
|
COBJS-$(CONFIG_CMD_FDOS) += cmd_fdos.o
|
|
COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o
|
|
ifdef CONFIG_FPGA
|
|
COBJS-y += fpga.o
|
|
COBJS-$(CONFIG_CMD_FPGA) += cmd_fpga.o
|
|
COBJS-$(CONFIG_FPGA_SPARTAN2) += spartan2.o
|
|
COBJS-$(CONFIG_FPGA_SPARTAN3) += spartan3.o
|
|
COBJS-$(CONFIG_FPGA_VIRTEX2) += virtex2.o
|
|
COBJS-$(CONFIG_FPGA_XILINX) += xilinx.o
|
|
ifdef CONFIG_FPGA_ALTERA
|
|
COBJS-y += altera.o
|
|
COBJS-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
|
|
COBJS-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
|
|
COBJS-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
|
|
endif
|
|
endif
|
|
COBJS-$(CONFIG_CMD_I2C) += cmd_i2c.o
|
|
COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o
|
|
COBJS-$(CONFIG_CMD_IMMAP) += cmd_immap.o
|
|
COBJS-$(CONFIG_CMD_ITEST) += cmd_itest.o
|
|
COBJS-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
|
|
COBJS-$(CONFIG_CMD_LICENSE) += cmd_license.o
|
|
COBJS-y += cmd_load.o
|
|
COBJS-$(CONFIG_LOGBUFFER) += cmd_log.o
|
|
COBJS-y += cmd_mem.o
|
|
COBJS-$(CONFIG_CMD_MII) += cmd_mii.o
|
|
COBJS-$(CONFIG_CMD_MISC) += cmd_misc.o
|
|
COBJS-$(CONFIG_CMD_MMC) += cmd_mmc.o
|
|
COBJS-y += cmd_nand.o
|
|
COBJS-$(CONFIG_CMD_NET) += cmd_net.o
|
|
COBJS-y += cmd_nvedit.o
|
|
COBJS-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
|
|
COBJS-$(CONFIG_CMD_OTP) += cmd_otp.o
|
|
ifdef CONFIG_PCI
|
|
COBJS-$(CONFIG_CMD_PCI) += cmd_pci.o
|
|
endif
|
|
COBJS-y += cmd_pcmcia.o
|
|
COBJS-$(CONFIG_CMD_PORTIO) += cmd_portio.o
|
|
COBJS-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
|
|
COBJS-$(CONFIG_CMD_REISER) += cmd_reiser.o
|
|
COBJS-$(CONFIG_CMD_SATA) += cmd_sata.o
|
|
COBJS-$(CONFIG_CMD_SCSI) += cmd_scsi.o
|
|
COBJS-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
|
|
COBJS-$(CONFIG_CMD_SPI) += cmd_spi.o
|
|
COBJS-$(CONFIG_CMD_STRINGS) += cmd_strings.o
|
|
COBJS-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
|
|
COBJS-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
|
|
COBJS-$(CONFIG_CMD_USB) += cmd_usb.o
|
|
COBJS-$(CONFIG_CMD_XIMG) += cmd_ximg.o
|
|
COBJS-$(CONFIG_YAFFS2) += cmd_yaffs2.o
|
|
COBJS-y += cmd_vfd.o
|
|
COBJS-y += command.o
|
|
COBJS-y += console.o
|
|
COBJS-y += devices.o
|
|
COBJS-y += dlmalloc.o
|
|
COBJS-$(CONFIG_CMD_DOC) += docecc.o
|
|
COBJS-y += environment.o
|
|
COBJS-y += env_common.o
|
|
COBJS-y += env_nand.o
|
|
COBJS-y += env_dataflash.o
|
|
COBJS-y += env_flash.o
|
|
COBJS-y += env_eeprom.o
|
|
COBJS-y += env_onenand.o
|
|
COBJS-y += env_sf.o
|
|
COBJS-y += env_nvram.o
|
|
COBJS-y += env_nowhere.o
|
|
COBJS-y += exports.o
|
|
COBJS-y += flash.o
|
|
COBJS-y += hush.o
|
|
COBJS-y += kgdb.o
|
|
COBJS-$(CONFIG_LCD) += lcd.o
|
|
COBJS-y += lists.o
|
|
COBJS-$(CONFIG_LYNXKDI) += lynxkdi.o
|
|
COBJS-y += memsize.o
|
|
COBJS-$(CONFIG_BITBANGMII) += miiphybb.o
|
|
COBJS-y += miiphyutil.o
|
|
COBJS-y += s_record.o
|
|
COBJS-y += serial.o
|
|
COBJS-$(CONFIG_SOFT_I2C) += soft_i2c.o
|
|
COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
|
|
ifdef CONFIG_CMD_USB
|
|
COBJS-y += usb.o
|
|
COBJS-$(CONFIG_USB_STORAGE) += usb_storage.o
|
|
endif
|
|
COBJS-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
|
|
COBJS-y += crc16.o
|
|
COBJS-y += xyzModem.o
|
|
COBJS-y += cmd_mac.o
|
|
COBJS-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
|
|
COBJS-$(CONFIG_MP) += cmd_mp.o
|
|
COBJS-$(CONFIG_CMD_SF) += cmd_sf.o
|
|
|
|
COBJS := $(COBJS-y)
|
|
SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
|
|
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
|
|
|
|
CPPFLAGS += -I..
|
|
|
|
all: $(LIB) $(AOBJS)
|
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
|
|
|
$(obj)environment.o: $(src)environment.c $(obj)../tools/envcrc
|
|
$(CC) $(AFLAGS) -Wa,--no-warn \
|
|
-DENV_CRC=$(shell $(obj)../tools/envcrc) \
|
|
-c -o $@ $(src)environment.c
|
|
|
|
$(obj)../tools/envcrc:
|
|
$(MAKE) -C ../tools
|
|
|
|
#########################################################################
|
|
|
|
# defines $(obj).depend target
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
sinclude $(obj).depend
|
|
|
|
#########################################################################
|