Uboot tool Makefile patch for Mac OSX Snow leopard
PATCH 1/1 Uboot tool Makefile patch for Mac OSX Snow leopard
tools/Makefile +0 -0
@@ -96,11 +96,11 @@ OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o
#endif
# Flattened device tree objects
-LIBFDT_OBJ_FILES-y += fdt.o
-LIBFDT_OBJ_FILES-y += fdt_ro.o
-LIBFDT_OBJ_FILES-y += fdt_rw.o
-LIBFDT_OBJ_FILES-y += fdt_strerror.o
-LIBFDT_OBJ_FILES-y += fdt_wip.o
+LIBFDT_OBJ_FILES-y += lib/libfdt/fdt.o
+LIBFDT_OBJ_FILES-y += lib/libfdt/fdt_ro.o
+LIBFDT_OBJ_FILES-y += lib/libfdt/fdt_rw.o
+LIBFDT_OBJ_FILES-y += lib/libfdt/fdt_strerror.o
+LIBFDT_OBJ_FILES-y += lib/libfdt/fdt_wip.o
# Generated LCD/video logoLOGO_H = $(OBJTREE)/include/bmp_logo.h
@@ -129,7 +129,7 @@ endif
# now $(obj) is defined HOSTSRCS += $(addprefix $(SRCTREE)/,$(EXT_OBJ_FILES-y:.o=.c)) HOSTSRCS += $(addprefix $(SRCTREE)/tools/,$(OBJ_FILES-y:.o=.c)) -HOSTSRCS += $(addprefix $(SRCTREE)/lib/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c)) +HOSTSRCS += $(addprefix $(SRCTREE)/,$(LIBFDT_OBJ_FILES-y:.o=.c)) BINS := $(addprefix $(obj),$(sort $(BIN_FILES-y))) LIBFDT_OBJS := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
@@ -185,7 +185,11 @@ $(obj)mkimage$(SFX): $(obj)crc32.o \ $(obj)mkimage.o \ $(obj)os_support.o \ $(obj)sha1.o \
- $(LIBFDT_OBJS)
+ $(obj)fdt.o \
+ $(obj)fdt_ro.o\
+ $(obj)fdt_rw.o\
+ $(obj)fdt_strerror.o\
+ $(obj)fdt_wip.o
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTSTRIP) $@
@@ -201,13 +205,13 @@ $(obj)ubsha1$(SFX): $(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
# Some of the tool objects need to be accessed from outside the tools directory -$(obj)%.o: $(SRCTREE)/common/%.c
+$(subst common/,,$(filter common/%,$(EXT_OBJ_FILES-y))): $(obj)%.o: $(SRCTREE)/common/%.c
$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
-$(obj)%.o: $(SRCTREE)/lib/%.c
+$(subst lib/,,$(filter lib/%,$(EXT_OBJ_FILES-y))): $(obj)%.o: $(SRCTREE)/lib/%.c
$(HOSTCC) -g $(HOSTCFLAGS) -c -o $@ $<
-$(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
+$(subst lib/libfdt/,,$(filter lib/libfdt/%,$(LIBFDT_OBJ_FILES-y))): $(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
subdirs:
PATCH 1/1 Uboot tool Makefile patch for Mac OSX Snow leopard
could you provide some real details as to what the problem is you're hitting and why/how this fixes things ? 2011.03 builds fine for me on leopard (10.5). -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110602/bd99dc17/attachment.pgp
Hello Sungyeon / Mike,
I am not sure what the exact purpose of this patch is, but seems like the issue I encountered with .depends (not finding the files in the correct path).
http://patchwork.ozlabs.org/patch/98316/
You might want to check if this helps:
http://patchwork.ozlabs.org/patch/105538/
Mike:
"could you provide some real details as to what the problem is you're hitting and why/how this fixes things ? 2011.03 builds fine for me on leopard (10.5). -mike"
Which sed version are you using on the mac? I don't know, but I am tempted to think it doesn't ship sed with GNU extension by default.
Regards,
Jeroen
Quoted 11 lines · Jeroen
http://patchwork.ozlabs.org/patch/105538/
Mike:
"could you provide some real details as to what the problem is you're hitting
and why/how this fixes things ? ?2011.03 builds fine for me on leopard (10.5).
-mike"Which sed version are you using on the mac? I don't know, but I am tempted to think it doesn't ship sed with GNU extension by default.
i'm using fink to bring sanity to the OS X hell hole, so i probably do miss some utility related bugs. but that doesnt explain at all what sungyeon's patch is attempting to fix or how it fixes it. -mike
Dear Jeroen.
The patch file that i uploaded before is for u-boot tools for snow leopard 10.6.8. I think http://patchwork.ozlabs.org/patch/105538/ will resolve for snow leopard environment.
Regards
sungyeon.
Quoted 26 lines · Jeroen
Hello Sungyeon / Mike,
I am not sure what the exact purpose of this patch is, but seems like the issue I encountered with .depends (not finding the files in the correct path).
http://patchwork.ozlabs.org/patch/98316/
You might want to check if this helps:
http://patchwork.ozlabs.org/patch/105538/Mike:
"could you provide some real details as to what the problem is you're hitting and why/how this fixes things ? 2011.03 builds fine for me on leopard (10.5). -mike"Which sed version are you using on the mac? I don't know, but I am tempted to think it doesn't ship sed with GNU extension by default.
Regards,
Jeroen