# # (C) Copyright 2009 Texas Instruments. # # 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 COMMONDIR = ../common PLAT_DIR = $(TOPDIR)/plat-tomtom/offenburg LIB = lib$(BOARD).a # Boot shell scripts USHOBJS := bootcmd.o altbootcmd.o preboot.o preboot_plat.o # U-Boot 1.1.4 build system sucks :P ifeq (,$(shell fgrep -q 'CONFIG_DEBUG_BUILD' \ $(TOPDIR)/include/`sed -ne 's|.*<\(.*\)>.*|\1|p' $(TOPDIR)/include/config.h` \ 2>/dev/null || echo x)) USHOBJS += bootcmd_debug.o altbootcmd_debug.o preboot_debug.o endif OBJS := strasbourg.o \ ${PLAT_DIR}/board.o \ ${PLAT_DIR}/security.o \ ${PLAT_DIR}/sys_info.o \ bricknum.o \ mfd_feat.o \ epic_fail.o OBJS += $(COMMONDIR)/bootcount.o \ $(COMMONDIR)/env_init.o \ $(LIB): $(OBJS) $(USHOBJS) $(AR) crv $@ $^ %.o: %.image cd $( $@ -include .depend #########################################################################