summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@semihalf.com>2008-01-29 16:57:38 +0100
committerRafal Jaworowski <raj@semihalf.com>2008-01-29 16:57:38 +0100
commit0dc1fc22af86d16993388d9ed9630dbaa2d51826 (patch)
treeda03f3b050381d07ed1a5286d1b7b5ad01924845 /api
parent98b742489c09780be6a832eeaa4e5eff824792bb (diff)
downloadu-boot-0dc1fc22af86d16993388d9ed9630dbaa2d51826.tar.gz
API: Convert conditional building to the new scheme.
This fixes a build breakage with CONFIG_API enabled, which appeared after the recent changes in the U-Boot build system. Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
Diffstat (limited to 'api')
-rw-r--r--api/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/api/Makefile b/api/Makefile
index 94de3dc395..4216892072 100644
--- a/api/Makefile
+++ b/api/Makefile
@@ -24,13 +24,12 @@ include $(TOPDIR)/config.mk
LIB = $(obj)libapi.a
-COBJS = api.o api_net.o api_storage.o api_platform-$(ARCH).o
+COBJS-$(CONFIG_API) += api.o api_net.o api_storage.o api_platform-$(ARCH).o
+COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
-all: $(LIB)
-
$(LIB): $(obj).depend $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)