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