From: Pavel Pisa Date: Fri, 27 Nov 2009 01:18:13 +0000 (+0100) Subject: uLUt allows minimal build suitable for mcs51 SDCC target. X-Git-Tag: ul_drv-0.8.0-release~1 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/ulut.git/commitdiff_plain/1bfcfd9393da8d8742d612d4a4eb65d1748655ed uLUt allows minimal build suitable for mcs51 SDCC target. The mcs51 build requires SDCC with matured inline support and C99 support. The proposed inline fixes can be found in discussion under bug #1767885 Parameters lost from scope of intermediate inline function Next options has been included in config.omk to build this minimal uLUt version. CONFIG_OC_ULUT=y CONFIG_OC_ULUTMINIMAL=y CFLAGS += --std-c99 Signed-off-by: Pavel Pisa --- diff --git a/ulut/Makefile.omk b/ulut/Makefile.omk index beebb84..43dca28 100644 --- a/ulut/Makefile.omk +++ b/ulut/Makefile.omk @@ -1,4 +1,5 @@ default_CONFIG = CONFIG_OC_ULUT=y +default_CONFIG += CONFIG_OC_ULUTMINIMAL=x default_CONFIG += CONFIG_OC_ULUTKERN=y default_CONFIG += CONFIG_OC_ULUTRTL=x default_CONFIG += CONFIG_OC_ULUT_TESTS=x @@ -6,13 +7,17 @@ default_CONFIG += CONFIG_OC_SOLIBS=x ifeq ($(CONFIG_OC_ULUT),y) -include_HEADERS = ul_dbuff.h ul_evcbase.h ul_gavl.h ul_gavlcust.h \ +include_HEADERS = ul_dbuff.h ul_gavl.h ul_gavlcust.h \ ul_gavlflesint.h ul_gavlrepcust.h ul_gsa.h ul_gsacust.h \ ul_hptree.h ul_htimdefs.h ul_htimer.h ul_itbase.h \ ul_list.h ul_listbase.h ul_utdefs.h ul_utmalloc.h \ ul_uniqid.h ul_dbufflog.h ul_log.h ul_logbase.h \ ul_logreg.h ul_cbuff.h ul_dqfifo.h +ifneq ($(CONFIG_OC_ULUTMINIMAL),y) +include_HEADERS += ul_evcbase.h +endif + lib_LIBRARIES = ulut ifeq ($(CONFIG_OC_SOLIBS),y) @@ -20,11 +25,15 @@ shared_LIBRARIES = ulut endif ulut_SOURCES = ul_dbufbase.c ul_dbufmore.c ul_gsa.c ul_gsacust.c \ - ul_gavlprim.c ul_gavl.c ul_hptree.c \ - ul_htimer.c ul_htimbase.c ul_htimmstime.c ul_htimroot.c \ - ul_htimdefault.c \ - ul_evcbase.c ul_uniqid.c ul_dbufflog.c ul_logbase.c \ - ul_logreg.c ul_cbuff.c + ul_gavlprim.c ul_hptree.c \ + ul_htimer.c ul_htimbase.c ul_htimroot.c \ + ul_htimdefault.c ul_dbufflog.c ul_logbase.c \ + ul_cbuff.c + +ifneq ($(CONFIG_OC_ULUTMINIMAL),y) +ulut_SOURCES += ul_evcbase.c ul_gavl.c ul_htimmstime.c ul_logreg.c \ + ul_uniqid.c +endif lib_LOADLIBES = ulut