wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)libgeneric.o |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 11 | |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 12 | ifndef CONFIG_SPL_BUILD |
Yen Lin | 2f87903 | 2012-04-05 11:54:58 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_AES) += aes.o |
Mike Frysinger | 7c1555f | 2009-02-05 21:04:50 -0500 | [diff] [blame] | 14 | COBJS-$(CONFIG_BZIP2) += bzlib.o |
| 15 | COBJS-$(CONFIG_BZIP2) += bzlib_crctable.o |
| 16 | COBJS-$(CONFIG_BZIP2) += bzlib_decompress.o |
| 17 | COBJS-$(CONFIG_BZIP2) += bzlib_randtable.o |
| 18 | COBJS-$(CONFIG_BZIP2) += bzlib_huffman.o |
Peter Tyser | e8b39e4 | 2009-11-09 15:17:50 -0600 | [diff] [blame] | 19 | COBJS-$(CONFIG_USB_TTY) += circbuf.o |
Thomas Chou | 4f3391b | 2011-01-11 09:38:20 +0800 | [diff] [blame] | 20 | COBJS-y += crc7.o |
Jean-Christophe PLAGNIOL-VILLARD | 9ec67ee | 2008-08-29 01:18:11 +0200 | [diff] [blame] | 21 | COBJS-y += crc16.o |
Simon Glass | 2d2af85 | 2011-10-24 19:15:32 +0000 | [diff] [blame] | 22 | COBJS-$(CONFIG_OF_CONTROL) += fdtdec.o |
Simon Glass | 8894195 | 2012-01-17 08:20:51 +0000 | [diff] [blame] | 23 | COBJS-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
Mike Frysinger | ab427ae | 2010-01-21 19:30:36 -0500 | [diff] [blame] | 24 | COBJS-$(CONFIG_GZIP) += gunzip.o |
Lei Wen | 7592d1b | 2012-09-28 04:26:46 +0000 | [diff] [blame] | 25 | COBJS-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
Simon Glass | 82a5fa0 | 2013-03-05 14:39:40 +0000 | [diff] [blame] | 26 | COBJS-y += initcall.o |
Mike Frysinger | a0dadf8 | 2009-11-03 11:35:59 -0500 | [diff] [blame] | 27 | COBJS-$(CONFIG_LMB) += lmb.o |
Grant Likely | 1179ad1 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 28 | COBJS-y += ldiv.o |
Bartlomiej Sieka | b0ce352 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 29 | COBJS-$(CONFIG_MD5) += md5.o |
Dirk Behme | 8b3cc06 | 2010-01-03 08:33:58 +0100 | [diff] [blame] | 30 | COBJS-y += net_utils.o |
Gabe Black | a2f3a93 | 2012-12-02 04:55:18 +0000 | [diff] [blame] | 31 | COBJS-$(CONFIG_PHYSMEM) += physmem.o |
Wolfgang Denk | 9069922 | 2010-06-13 01:45:10 +0200 | [diff] [blame] | 32 | COBJS-y += qsort.o |
Mike Frysinger | 9a84980 | 2010-01-17 21:08:00 -0500 | [diff] [blame] | 33 | COBJS-$(CONFIG_SHA1) += sha1.o |
Jean-Christophe PLAGNIOL-VILLARD | c58a6b8 | 2008-06-07 12:29:52 +0200 | [diff] [blame] | 34 | COBJS-$(CONFIG_SHA256) += sha256.o |
Haavard Skinnemoen | b644d6b | 2008-08-18 13:41:27 +0200 | [diff] [blame] | 35 | COBJS-y += strmhz.o |
Che-liang Chiou | c18f901 | 2013-02-28 09:34:57 +0000 | [diff] [blame] | 36 | COBJS-$(CONFIG_TPM) += tpm.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 37 | COBJS-$(CONFIG_RBTREE) += rbtree.o |
Mike Dunn | f7eb8c7 | 2013-04-12 11:59:17 -0700 | [diff] [blame] | 38 | COBJS-$(CONFIG_BITREVERSE) += bitrev.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 39 | endif |
| 40 | |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 41 | ifdef CONFIG_SPL_BUILD |
| 42 | COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
Ilya Yanok | f7a2c55 | 2012-09-18 00:22:50 +0000 | [diff] [blame] | 43 | COBJS-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 44 | endif |
Ying Zhang | ded52a4 | 2013-05-20 14:07:26 +0800 | [diff] [blame] | 45 | COBJS-$(CONFIG_ADDR_MAP) += addr_map.o |
| 46 | COBJS-y += hashtable.o |
| 47 | COBJS-y += errno.o |
| 48 | COBJS-y += display_options.o |
Andreas Bießmann | 82a6547 | 2013-04-05 04:55:21 +0000 | [diff] [blame] | 49 | COBJS-$(CONFIG_BCH) += bch.o |
Stefan Roese | a64a5b5 | 2012-01-05 10:57:20 +0100 | [diff] [blame] | 50 | COBJS-y += crc32.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 51 | COBJS-y += ctype.o |
| 52 | COBJS-y += div64.o |
Andreas Bießmann | d7a886b | 2013-04-18 22:48:50 +0000 | [diff] [blame] | 53 | COBJS-y += hang.o |
Joe Hershberger | 32ec63c | 2012-12-11 22:16:18 -0600 | [diff] [blame] | 54 | COBJS-y += linux_string.o |
Wolfgang Denk | 2aceea1 | 2013-03-23 23:50:31 +0000 | [diff] [blame] | 55 | COBJS-$(CONFIG_REGEX) += slre.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 56 | COBJS-y += string.o |
Ingo van Lil | f0f778a | 2009-11-24 14:09:21 +0100 | [diff] [blame] | 57 | COBJS-y += time.o |
Simon Glass | c44b800 | 2013-06-11 11:14:39 -0700 | [diff] [blame] | 58 | COBJS-$(CONFIG_TRACE) += trace.o |
Jason Hobbs | 6e39cce | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 59 | COBJS-$(CONFIG_BOOTP_PXE) += uuid.o |
Grant Likely | 1179ad1 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 60 | COBJS-y += vsprintf.o |
Michael Walle | d96bd01 | 2012-06-05 11:33:14 +0000 | [diff] [blame] | 61 | COBJS-$(CONFIG_RANDOM_MACADDR) += rand.o |
Michael Walle | b90b97a | 2012-06-05 11:33:15 +0000 | [diff] [blame] | 62 | COBJS-$(CONFIG_BOOTP_RANDOM_DELAY) += rand.o |
| 63 | COBJS-$(CONFIG_CMD_LINK_LOCAL) += rand.o |
Wolfgang Denk | 4df0da5 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 64 | |
Michael Walle | b90b97a | 2012-06-05 11:33:15 +0000 | [diff] [blame] | 65 | COBJS := $(sort $(COBJS-y)) |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 66 | SRCS := $(COBJS:.o=.c) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 67 | OBJS := $(addprefix $(obj),$(COBJS)) |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 68 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 69 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 70 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 71 | |
Albert ARIBAUD | d6d4ec8 | 2012-10-09 09:28:15 +0000 | [diff] [blame] | 72 | # SEE README.arm-unaligned-accesses |
| 73 | $(obj)bzlib.o: CFLAGS += $(PLATFORM_NO_UNALIGNED) |
| 74 | |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 75 | ######################################################################### |
| 76 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 77 | # defines $(obj).depend target |
| 78 | include $(SRCTREE)/rules.mk |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 79 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 80 | sinclude $(obj).depend |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 81 | |
| 82 | ######################################################################### |