wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 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 | 1a45966 | 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 | 6d8962e | 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 | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 12 | ifndef CONFIG_SPL_BUILD |
Yen Lin | 5b1a545 | 2012-04-05 11:54:58 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_AES) += aes.o |
Mike Frysinger | ab76e98 | 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 | 9ef7851 | 2009-11-09 15:17:50 -0600 | [diff] [blame] | 19 | COBJS-$(CONFIG_USB_TTY) += circbuf.o |
Thomas Chou | ed6ce67 | 2011-01-11 09:38:20 +0800 | [diff] [blame] | 20 | COBJS-y += crc7.o |
Jean-Christophe PLAGNIOL-VILLARD | bbf52df | 2008-08-29 01:18:11 +0200 | [diff] [blame] | 21 | COBJS-y += crc16.o |
Simon Glass | b5220bc | 2011-10-24 19:15:32 +0000 | [diff] [blame] | 22 | COBJS-$(CONFIG_OF_CONTROL) += fdtdec.o |
Simon Glass | dc254f3 | 2012-01-17 08:20:51 +0000 | [diff] [blame] | 23 | COBJS-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
Mike Frysinger | 44431ca | 2010-01-21 19:30:36 -0500 | [diff] [blame] | 24 | COBJS-$(CONFIG_GZIP) += gunzip.o |
Lei Wen | 88d52c6 | 2012-09-28 04:26:46 +0000 | [diff] [blame] | 25 | COBJS-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
Simon Glass | c8a311d | 2013-03-05 14:39:40 +0000 | [diff] [blame] | 26 | COBJS-y += initcall.o |
Mike Frysinger | a16028d | 2009-11-03 11:35:59 -0500 | [diff] [blame] | 27 | COBJS-$(CONFIG_LMB) += lmb.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 28 | COBJS-y += ldiv.o |
Bartlomiej Sieka | 0ede0c3 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 29 | COBJS-$(CONFIG_MD5) += md5.o |
Dirk Behme | 6a45e38 | 2010-01-03 08:33:58 +0100 | [diff] [blame] | 30 | COBJS-y += net_utils.o |
Gabe Black | 40fef04 | 2012-12-02 04:55:18 +0000 | [diff] [blame] | 31 | COBJS-$(CONFIG_PHYSMEM) += physmem.o |
Wolfgang Denk | 54c6977 | 2010-06-13 01:45:10 +0200 | [diff] [blame] | 32 | COBJS-y += qsort.o |
Mike Frysinger | dac4d7e | 2010-01-17 21:08:00 -0500 | [diff] [blame] | 33 | COBJS-$(CONFIG_SHA1) += sha1.o |
Jean-Christophe PLAGNIOL-VILLARD | b571afd | 2008-06-07 12:29:52 +0200 | [diff] [blame] | 34 | COBJS-$(CONFIG_SHA256) += sha256.o |
Haavard Skinnemoen | 0768b7a | 2008-08-18 13:41:27 +0200 | [diff] [blame] | 35 | COBJS-y += strmhz.o |
Che-liang Chiou | 8732b07 | 2013-02-28 09:34:57 +0000 | [diff] [blame] | 36 | COBJS-$(CONFIG_TPM) += tpm.o |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 37 | COBJS-$(CONFIG_RBTREE) += rbtree.o |
Mike Dunn | 0dd9c7a9 | 2013-04-12 11:59:17 -0700 | [diff] [blame] | 38 | COBJS-$(CONFIG_BITREVERSE) += bitrev.o |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 39 | endif |
| 40 | |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 41 | ifdef CONFIG_SPL_BUILD |
| 42 | COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
Ilya Yanok | 7ac2fe2 | 2012-09-18 00:22:50 +0000 | [diff] [blame] | 43 | COBJS-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 44 | endif |
Ying Zhang | f90572d | 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 | 4a09300 | 2013-04-05 04:55:21 +0000 | [diff] [blame] | 49 | COBJS-$(CONFIG_BCH) += bch.o |
Stefan Roese | aca587b | 2012-01-05 10:57:20 +0100 | [diff] [blame] | 50 | COBJS-y += crc32.o |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 51 | COBJS-y += ctype.o |
| 52 | COBJS-y += div64.o |
Andreas Bießmann | d2eae43 | 2013-04-18 22:48:50 +0000 | [diff] [blame] | 53 | COBJS-y += hang.o |
Joe Hershberger | e772cb3 | 2012-12-11 22:16:18 -0600 | [diff] [blame] | 54 | COBJS-y += linux_string.o |
Wolfgang Denk | a5ecbe6 | 2013-03-23 23:50:31 +0000 | [diff] [blame] | 55 | COBJS-$(CONFIG_REGEX) += slre.o |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 56 | COBJS-y += string.o |
Ingo van Lil | 3eb90ba | 2009-11-24 14:09:21 +0100 | [diff] [blame] | 57 | COBJS-y += time.o |
Simon Glass | b2e16a8 | 2013-06-11 11:14:39 -0700 | [diff] [blame] | 58 | COBJS-$(CONFIG_TRACE) += trace.o |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 59 | COBJS-$(CONFIG_BOOTP_PXE) += uuid.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 60 | COBJS-y += vsprintf.o |
Michael Walle | 9acf1ca | 2012-06-05 11:33:14 +0000 | [diff] [blame] | 61 | COBJS-$(CONFIG_RANDOM_MACADDR) += rand.o |
Michael Walle | 99e139d | 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 | 511d0c7 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 64 | |
Michael Walle | 99e139d | 2012-06-05 11:33:15 +0000 | [diff] [blame] | 65 | COBJS := $(sort $(COBJS-y)) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 66 | SRCS := $(COBJS:.o=.c) |
Marian Balakowicz | f932863 | 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 | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 69 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 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 | b823fd9 | 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 | f932863 | 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 | f932863 | 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 | ######################################################################### |