[U-Boot] [PATCH 03/17] Move libfdt/ into lib/
Luigi Mantellini
luigi.mantellini.ml at gmail.com
Mon Dec 14 00:16:06 CET 2009
On Mon, Dec 14, 2009 at 12:04 AM, Peter Tyser <ptyser at xes-inc.com> wrote:
> Move the libfdt library into the common lib/ directory to clean up the
> top-level of U-Boot.
>
> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
...
> +++ b/tools/Makefile> --- a/tools/imls/Makefile
> +++ b/tools/imls/Makefile
> @@ -41,7 +41,7 @@ LIBFDT_OBJ_FILES-y += fdt_wip.o
> # now $(obj) is defined
> SRCS += $(addprefix $(SRCTREE)/,$(EXT_OBJ_FILES-y:.o=.c))
> SRCS += $(addprefix $(SRCTREE)/tools/,$(OBJ_FILES-y:.o=.c))
> -SRCS += $(addprefix $(SRCTREE)/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
> +SRCS += $(addprefix $(SRCTREE)/lib/lib/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
`````````````````````````
is it correct?
> BINS := $(addprefix $(obj),$(sort $(BIN_FILES-y)))
> LIBFDT_OBJS := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
>
> @@ -52,7 +52,7 @@ LIBFDT_OBJS := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
> HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \
> -idirafter $(OBJTREE)/include2 \
> -idirafter $(OBJTREE)/include \
> - -I $(SRCTREE)/libfdt \
> + -I $(SRCTREE)/lib/lib/libfdt \
idem
> -I $(SRCTREE)/tools \
> -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES
>
> @@ -81,7 +81,7 @@ $(obj)%.o: $(SRCTREE)/common/%.c
> $(obj)%.o: $(SRCTREE)/lib/%.c
> $(CC) -g $(HOSTCFLAGS) -c -o $@ $<
>
> -$(obj)%.o: $(SRCTREE)/libfdt/%.c
> +$(obj)%.o: $(SRCTREE)/lib/lib/libfdt/%.c
idem
ciao
luigi
--
Luigi 'Comio' Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI), Italy
Tel.: +39 02 5167 2813
Fax: +39 02 5167 2459
web: www.idf-hit.com
mail: luigi.mantellini at idf-hit.com
More information about the U-Boot
mailing list