]> rtime.felk.cvut.cz Git - hydro.git/blobdiff - app-stefic/regulator/Makefile.omk
Added regulator. Added accepting of PDO messages.
[hydro.git] / app-stefic / regulator / Makefile.omk
diff --git a/app-stefic/regulator/Makefile.omk b/app-stefic/regulator/Makefile.omk
new file mode 100644 (file)
index 0000000..2aae532
--- /dev/null
@@ -0,0 +1,33 @@
+
+default_CONFIG = CONFIG_APP_REGULATOR=n
+
+ifeq ($(CONFIG_APP_REGULATOR),y)
+
+ULAN_ID=regulator
+
+default_CONFIG += CONFIG_ULOI_LT=x
+default_CONFIG += CONFIG_ULAN_DY=x
+default_CONFIG += MACH=$(MACH)
+default_CONFIG += ULAN_ID=$(ULAN_ID)
+
+LOCAL_CONFIG_H = ulan_config.h
+
+INCLUDES += -I.
+
+
+bin_PROGRAMS = regulator
+regulator_SOURCES = hydroponie.c ul_idstr.c board.c hydroponieoi.c definitions.c
+
+ifeq ($(BUILD_OS),linux)
+lib_LOADLIBES = uloi uldy ulan pthread rt
+DEFS += -DOS_POSIX
+else
+regulator_MOREOBJS = $(USER_LIB_DIR)/system_stub.o
+regulator_MOREOBJS += $(USER_LIB_DIR)/ivt.o
+lib_LOADLIBES = uloi uldy bspbase ulan ul_drv lpciap keyval lpciap lpciap_kvpb mach_hal
+endif
+
+# This selects linker script
+link_VARIANTS = app
+
+endif
\ No newline at end of file