* [U-Boot-Users] Pull request: u-boot-freebsd
@ 2008-01-29 16:28 Rafal Jaworowski
2008-01-29 17:18 ` [U-Boot-Users] [PATCH] API: Convert conditional building to the new scheme Rafal Jaworowski
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Rafal Jaworowski @ 2008-01-29 16:28 UTC (permalink / raw)
To: u-boot
Dear Wolfgang,
The following are two fixes which are needed in this release. Without these
the build breaks when CONFIG_API is enabled.
kind regards,
Rafal
The following changes since commit 98b742489c09780be6a832eeaa4e5eff824792bb:
Wolfgang Denk (1):
inka4x0: remove dead code
are available in the git repository at:
git://denx.de/git/u-boot-freebsd.git master
Rafal Jaworowski (2):
API: Convert conditional building to the new scheme.
API: Provide dummy halt() in the glue layer.
Makefile | 9 ++-------
api/Makefile | 5 ++---
api_examples/Makefile | 20 +++++++++++++-------
api_examples/libgenwrap.c | 7 ++++++-
4 files changed, 23 insertions(+), 18 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread* [U-Boot-Users] [PATCH] API: Convert conditional building to the new scheme. 2008-01-29 16:28 [U-Boot-Users] Pull request: u-boot-freebsd Rafal Jaworowski @ 2008-01-29 17:18 ` Rafal Jaworowski 2008-01-29 17:19 ` [U-Boot-Users] [PATCH] API: Provide dummy halt() in the glue layer Rafal Jaworowski 2008-02-11 23:51 ` [U-Boot-Users] Pull request: u-boot-freebsd Wolfgang Denk 2 siblings, 0 replies; 4+ messages in thread From: Rafal Jaworowski @ 2008-01-29 17:18 UTC (permalink / raw) To: u-boot 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> --- These patches should probably be sent before the pull request :) But here they are for review and reference. Makefile | 9 ++------- api/Makefile | 5 ++--- api_examples/Makefile | 20 +++++++++++++------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 0f6cc59..3e7cffc 100644 --- a/Makefile +++ b/Makefile @@ -253,9 +253,7 @@ LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) LIBS += common/libcommon.a LIBS += libfdt/libfdt.a -ifeq ($(CONFIG_API),y) LIBS += api/libapi.a -endif LIBS := $(addprefix $(obj),$(LIBS)) .PHONY : $(LIBS) @@ -266,11 +264,8 @@ PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) - # The "tools" are needed early, so put this first # Don't include stuff already done in $(LIBS) SUBDIRS = tools \ - examples - -ifeq ($(CONFIG_API),y) -SUBDIRS += api_examples -endif + examples \ + api_examples .PHONY : $(SUBDIRS) diff --git a/api/Makefile b/api/Makefile index 94de3dc..4216892 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) diff --git a/api_examples/Makefile b/api_examples/Makefile index cb49a9e..5666f48 100644 --- a/api_examples/Makefile +++ b/api_examples/Makefile @@ -30,19 +30,25 @@ endif include $(TOPDIR)/config.mk -ELF += demo -BIN += demo.bin +ELF-$(CONFIG_API) += demo +BIN-$(CONFIG_API) += demo.bin +ELF := $(ELF-y) +BIN := $(BIN-y) #CFLAGS += -v -COBJS := $(ELF:=.o) -SOBJS := crt0.o +COBJS-$(CONFIG_API) += $(ELF:=.o) +SOBJS-$(CONFIG_API) += crt0.o ifeq ($(ARCH),ppc) -SOBJS += ppcstring.o +SOBJS-$(CONFIG_API) += ppcstring.o endif +COBJS := $(COBJS-y) +SOBJS := $(SOBJS-y) LIB = $(obj)libglue.a -LIBCOBJS= glue.o crc32.o ctype.o string.o vsprintf.o libgenwrap.o +LIBCOBJS-$(CONFIG_API) += glue.o crc32.o ctype.o string.o vsprintf.o \ + libgenwrap.o +LIBCOBJS := $(LIBCOBJS-y) LIBOBJS = $(addprefix $(obj),$(SOBJS) $(LIBCOBJS)) @@ -55,7 +61,7 @@ gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`) CPPFLAGS += -I.. -all: $(obj).depend $(OBJS) $(LIB) $(BIN) $(ELF) +all: $(obj).depend $(OBJS) $(LIB) $(ELF) $(BIN) ######################################################################### $(LIB): $(obj).depend $(LIBOBJS) -- 1.5.2.2 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot-Users] [PATCH] API: Provide dummy halt() in the glue layer. 2008-01-29 16:28 [U-Boot-Users] Pull request: u-boot-freebsd Rafal Jaworowski 2008-01-29 17:18 ` [U-Boot-Users] [PATCH] API: Convert conditional building to the new scheme Rafal Jaworowski @ 2008-01-29 17:19 ` Rafal Jaworowski 2008-02-11 23:51 ` [U-Boot-Users] Pull request: u-boot-freebsd Wolfgang Denk 2 siblings, 0 replies; 4+ messages in thread From: Rafal Jaworowski @ 2008-01-29 17:19 UTC (permalink / raw) To: u-boot This fixes a demo app link failure on platforms configured with CONFIG_PANIC_HANG. Signed-off-by: Rafal Jaworowski <raj@semihalf.com> --- api_examples/libgenwrap.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/api_examples/libgenwrap.c b/api_examples/libgenwrap.c index df62633..2b62bad 100644 --- a/api_examples/libgenwrap.c +++ b/api_examples/libgenwrap.c @@ -84,7 +84,12 @@ void do_reset (void) ub_reset(); } -void *malloc(size_t len) +void *malloc (size_t len) { return NULL; } + +void hang (void) +{ + while (1) ; +} -- 1.5.2.2 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot-Users] Pull request: u-boot-freebsd 2008-01-29 16:28 [U-Boot-Users] Pull request: u-boot-freebsd Rafal Jaworowski 2008-01-29 17:18 ` [U-Boot-Users] [PATCH] API: Convert conditional building to the new scheme Rafal Jaworowski 2008-01-29 17:19 ` [U-Boot-Users] [PATCH] API: Provide dummy halt() in the glue layer Rafal Jaworowski @ 2008-02-11 23:51 ` Wolfgang Denk 2 siblings, 0 replies; 4+ messages in thread From: Wolfgang Denk @ 2008-02-11 23:51 UTC (permalink / raw) To: u-boot In message <479F541C.2040205@semihalf.com> you wrote: > > The following are two fixes which are needed in this release. Without these > the build breaks when CONFIG_API is enabled. > > kind regards, > Rafal > > > The following changes since commit 98b742489c09780be6a832eeaa4e5eff824792bb: > Wolfgang Denk (1): > inka4x0: remove dead code > > are available in the git repository at: > > git://denx.de/git/u-boot-freebsd.git master > > Rafal Jaworowski (2): > API: Convert conditional building to the new scheme. > API: Provide dummy halt() in the glue layer. Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Only a fool fights in a burning house. -- Kank the Klingon, "Day of the Dove", stardate unknown ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-11 23:51 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-01-29 16:28 [U-Boot-Users] Pull request: u-boot-freebsd Rafal Jaworowski 2008-01-29 17:18 ` [U-Boot-Users] [PATCH] API: Convert conditional building to the new scheme Rafal Jaworowski 2008-01-29 17:19 ` [U-Boot-Users] [PATCH] API: Provide dummy halt() in the glue layer Rafal Jaworowski 2008-02-11 23:51 ` [U-Boot-Users] Pull request: u-boot-freebsd Wolfgang Denk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox