[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH v3 04/23] Kconfig: Importing existing Makefile.br



Hi Sharan,

This patch looks ok.

-- Felipe

Reviewed-by: Felipe Huici <felipe.huici@xxxxxxxxx>

On 19.09.19, 11:16, "Minios-devel on behalf of Sharan Santhanam" 
<minios-devel-bounces@xxxxxxxxxxxxxxxxxxxx on behalf of 
Sharan.Santhanam@xxxxxxxxx> wrote:

    Signed-off-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
    ---
     support/kconfig.new/Makefile.br                   | 53 ++++++++++++++++++++
     support/kconfig.new/patches/02-import-makefile.br | 59 
+++++++++++++++++++++++
     2 files changed, 112 insertions(+)
     create mode 100644 support/kconfig.new/Makefile.br
     create mode 100644 support/kconfig.new/patches/02-import-makefile.br
    
    diff --git a/support/kconfig.new/Makefile.br 
b/support/kconfig.new/Makefile.br
    new file mode 100644
    index 0000000..41c5ce1
    --- /dev/null
    +++ b/support/kconfig.new/Makefile.br
    @@ -0,0 +1,53 @@
    +src := .
    +top_srcdir=../../
    +top_builddir=../../
    +srctree := .
    +obj ?= .
    +
    +include Makefile
    +#HOSTCFLAGS+=-Dinline="" -include foo.h
    +-include $(obj)/.depend
    +$(obj)/.depend: $(wildcard *.h *.c)
    +   $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || 
:
    +
    +__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
    +host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
    +host-cmulti := $(foreach m,$(__hostprogs),\
    +           $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
    +host-cxxmulti := $(foreach m,$(__hostprogs),\
    +           $(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
    +host-cobjs := $(addprefix $(obj)/,$(sort $(foreach 
m,$(__hostprogs),$($(m)-objs))))
    +host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach 
m,$(__hostprogs),$($(m)-cxxobjs))))
    +
    +HOST_EXTRACFLAGS += -I$(obj) -DCONFIG_=\"\"
    +
    +$(host-csingle): %: %.c
    +   $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< -o 
$(obj)/$@
    +
    +$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
    +   $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) 
$(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
    +
    +$(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
    +   $(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) 
$(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o 
$(obj)/$@
    +
    +$(obj)/%.o: %.c
    +   $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< 
-o $@
    +
    +$(obj)/%.o: $(obj)/%.c
    +   $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< 
-o $@
    +
    +$(obj)/%.o: %.cc
    +   $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< 
-o $@
    +
    +$(obj)/%:: $(src)/%_shipped
    +   $(Q)cat $< > $@
    +
    +clean:
    +   $(Q)rm -f $(addprefix $(obj)/,$(clean-files))
    +distclean: clean
    +   $(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) 
$(kxgettext-objs) \
    +           $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
    +           mconf .depend)
    +
    +FORCE:
    +.PHONY: FORCE clean distclean
    diff --git a/support/kconfig.new/patches/02-import-makefile.br 
b/support/kconfig.new/patches/02-import-makefile.br
    new file mode 100644
    index 0000000..ffe0ba9
    --- /dev/null
    +++ b/support/kconfig.new/patches/02-import-makefile.br
    @@ -0,0 +1,59 @@
    +diff --git a/support/kconfig.new/Makefile.br 
b/support/kconfig.new/Makefile.br
    +new file mode 100644
    +index 0000000..41c5ce1
    +--- /dev/null
    ++++ b/support/kconfig.new/Makefile.br
    +@@ -0,0 +1,53 @@
    ++src := .
    ++top_srcdir=../../
    ++top_builddir=../../
    ++srctree := .
    ++obj ?= .
    ++
    ++include Makefile
    ++#HOSTCFLAGS+=-Dinline="" -include foo.h
    ++-include $(obj)/.depend
    ++$(obj)/.depend: $(wildcard *.h *.c)
    ++  $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || 
:
    ++
    ++__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
    ++host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
    ++host-cmulti := $(foreach m,$(__hostprogs),\
    ++           $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
    ++host-cxxmulti := $(foreach m,$(__hostprogs),\
    ++           $(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
    ++host-cobjs := $(addprefix $(obj)/,$(sort $(foreach 
m,$(__hostprogs),$($(m)-objs))))
    ++host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach 
m,$(__hostprogs),$($(m)-cxxobjs))))
    ++
    ++HOST_EXTRACFLAGS += -I$(obj) -DCONFIG_=\"\"
    ++
    ++$(host-csingle): %: %.c
    ++  $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< -o 
$(obj)/$@
    ++
    ++$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
    ++  $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) 
$(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
    ++
    ++$(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
    ++  $(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) 
$(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o 
$(obj)/$@
    ++
    ++$(obj)/%.o: %.c
    ++  $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< 
-o $@
    ++
    ++$(obj)/%.o: $(obj)/%.c
    ++  $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< 
-o $@
    ++
    ++$(obj)/%.o: %.cc
    ++  $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< 
-o $@
    ++
    ++$(obj)/%:: $(src)/%_shipped
    ++  $(Q)cat $< > $@
    ++
    ++clean:
    ++  $(Q)rm -f $(addprefix $(obj)/,$(clean-files))
    ++distclean: clean
    ++  $(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) 
$(kxgettext-objs) \
    ++          $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
    ++          mconf .depend)
    ++
    ++FORCE:
    ++.PHONY: FORCE clean distclean
    -- 
    2.7.4
    
    
    _______________________________________________
    Minios-devel mailing list
    Minios-devel@xxxxxxxxxxxxxxxxxxxx
    https://lists.xenproject.org/mailman/listinfo/minios-devel

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.