2002-07-21 02:56:22 +08:00
|
|
|
#
|
2006-09-02 01:49:50 +08:00
|
|
|
# (C) Copyright 2000-2006
|
2002-07-21 02:56:22 +08:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 15:37:19 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-07-21 02:56:22 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 22:48:07 +08:00
|
|
|
LIB = $(obj)libgeneric.o
|
2002-07-21 02:56:22 +08:00
|
|
|
|
2011-07-13 13:11:06 +08:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2012-04-05 19:54:58 +08:00
|
|
|
COBJS-$(CONFIG_AES) += aes.o
|
2009-02-06 10:04:50 +08:00
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_crctable.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_decompress.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_randtable.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_huffman.o
|
2009-11-10 05:17:50 +08:00
|
|
|
COBJS-$(CONFIG_USB_TTY) += circbuf.o
|
2011-01-11 09:38:20 +08:00
|
|
|
COBJS-y += crc7.o
|
2008-08-29 07:18:11 +08:00
|
|
|
COBJS-y += crc16.o
|
2011-10-25 03:15:32 +08:00
|
|
|
COBJS-$(CONFIG_OF_CONTROL) += fdtdec.o
|
2012-01-17 16:20:51 +08:00
|
|
|
COBJS-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
|
2010-01-22 08:30:36 +08:00
|
|
|
COBJS-$(CONFIG_GZIP) += gunzip.o
|
2012-09-28 12:26:46 +08:00
|
|
|
COBJS-$(CONFIG_GZIP_COMPRESSED) += gzip.o
|
2013-03-05 22:39:40 +08:00
|
|
|
COBJS-y += initcall.o
|
2009-11-04 00:35:59 +08:00
|
|
|
COBJS-$(CONFIG_LMB) += lmb.o
|
2007-09-24 23:05:30 +08:00
|
|
|
COBJS-y += ldiv.o
|
2008-03-14 23:22:34 +08:00
|
|
|
COBJS-$(CONFIG_MD5) += md5.o
|
2010-01-03 15:33:58 +08:00
|
|
|
COBJS-y += net_utils.o
|
2012-12-02 12:55:18 +08:00
|
|
|
COBJS-$(CONFIG_PHYSMEM) += physmem.o
|
2010-06-13 07:45:10 +08:00
|
|
|
COBJS-y += qsort.o
|
2010-01-18 10:08:00 +08:00
|
|
|
COBJS-$(CONFIG_SHA1) += sha1.o
|
2008-06-07 18:29:52 +08:00
|
|
|
COBJS-$(CONFIG_SHA256) += sha256.o
|
2008-08-18 19:41:27 +08:00
|
|
|
COBJS-y += strmhz.o
|
2013-02-28 17:34:57 +08:00
|
|
|
COBJS-$(CONFIG_TPM) += tpm.o
|
2011-07-13 13:11:06 +08:00
|
|
|
COBJS-$(CONFIG_RBTREE) += rbtree.o
|
2013-04-13 02:59:17 +08:00
|
|
|
COBJS-$(CONFIG_BITREVERSE) += bitrev.o
|
2011-07-13 13:11:06 +08:00
|
|
|
endif
|
|
|
|
|
2012-01-31 20:03:57 +08:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
|
2012-09-18 08:22:50 +08:00
|
|
|
COBJS-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
|
2012-01-31 20:03:57 +08:00
|
|
|
endif
|
2013-05-20 14:07:26 +08:00
|
|
|
COBJS-$(CONFIG_ADDR_MAP) += addr_map.o
|
|
|
|
COBJS-y += hashtable.o
|
|
|
|
COBJS-y += errno.o
|
|
|
|
COBJS-y += display_options.o
|
2013-04-05 12:55:21 +08:00
|
|
|
COBJS-$(CONFIG_BCH) += bch.o
|
2012-01-05 17:57:20 +08:00
|
|
|
COBJS-y += crc32.o
|
2011-07-13 13:11:06 +08:00
|
|
|
COBJS-y += ctype.o
|
|
|
|
COBJS-y += div64.o
|
2013-04-19 06:48:50 +08:00
|
|
|
COBJS-y += hang.o
|
2012-12-12 12:16:18 +08:00
|
|
|
COBJS-y += linux_string.o
|
2013-03-24 07:50:31 +08:00
|
|
|
COBJS-$(CONFIG_REGEX) += slre.o
|
2011-07-13 13:11:06 +08:00
|
|
|
COBJS-y += string.o
|
2009-11-24 21:09:21 +08:00
|
|
|
COBJS-y += time.o
|
2013-06-12 02:14:39 +08:00
|
|
|
COBJS-$(CONFIG_TRACE) += trace.o
|
2011-08-23 19:06:56 +08:00
|
|
|
COBJS-$(CONFIG_BOOTP_PXE) += uuid.o
|
2007-09-24 23:05:30 +08:00
|
|
|
COBJS-y += vsprintf.o
|
2012-06-05 19:33:14 +08:00
|
|
|
COBJS-$(CONFIG_RANDOM_MACADDR) += rand.o
|
2012-06-05 19:33:15 +08:00
|
|
|
COBJS-$(CONFIG_BOOTP_RANDOM_DELAY) += rand.o
|
|
|
|
COBJS-$(CONFIG_CMD_LINK_LOCAL) += rand.o
|
2007-09-24 23:05:30 +08:00
|
|
|
|
2012-06-05 19:33:15 +08:00
|
|
|
COBJS := $(sort $(COBJS-y))
|
2008-05-20 22:00:29 +08:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
2006-09-02 01:49:50 +08:00
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2002-07-21 02:56:22 +08:00
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 22:48:07 +08:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2002-07-21 02:56:22 +08:00
|
|
|
|
2012-10-09 17:28:15 +08:00
|
|
|
# SEE README.arm-unaligned-accesses
|
|
|
|
$(obj)bzlib.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
|
|
|
|
|
2002-07-21 02:56:22 +08:00
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-07-21 02:56:22 +08:00
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
sinclude $(obj).depend
|
2002-07-21 02:56:22 +08:00
|
|
|
|
|
|
|
#########################################################################
|