summaryrefslogtreecommitdiff
path: root/cleopatre/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/Makefile')
-rw-r--r--cleopatre/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/cleopatre/Makefile b/cleopatre/Makefile
index 7a60b7dbf6..ff8fc65cb4 100644
--- a/cleopatre/Makefile
+++ b/cleopatre/Makefile
@@ -12,8 +12,11 @@ FLASHFS_UNUSE=tools/flashfs/image/etc/init.d/S50plctest \
NVRAM_AV_UNUSE=
NVRAM_EOC_UNUSE=
SPIDUPD_UNUSE=tools/spidupd/Makefile tools/spidupd/spidupd_host.c tools/spidupd/spidupd_host.h
-AV_UNUSE=devkit Makefile application/onlined $(FCM3_UNUSE) $(FLASHFS_UNUSE) $(NVRAM_AV_UNUSE) $(SPIDUPD_UNUSE)
-EOC_UNUSE=devkit Makefile $(FCM3_UNUSE) $(FLASHFS_UNUSE) $(NVRAM_EOC_UNUSE) $(SPIDUPD_UNUSE)
+AV_UNUSE=devkit Makefile application/onlined application/upnpd $(FCM3_UNUSE) $(FLASHFS_UNUSE) $(NVRAM_AV_UNUSE) $(SPIDUPD_UNUSE)
+EOC_UNUSE=devkit Makefile application/upnpd $(FCM3_UNUSE) $(FLASHFS_UNUSE) $(NVRAM_EOC_UNUSE) $(SPIDUPD_UNUSE)
+
+AV_DEBUG_BINS= cesar-plc-debug
+EOC_DEBUG_BINS=
AV_PLC_BINS= plcd plcdrv cesar-plc
EOC_PLC_BINS=plcd plcdrv cesar-eoc-master cesar-eoc-slave
@@ -74,10 +77,10 @@ bundle: bundle-av bundle-eoc
bundle-clean: bundle-av-clean bundle-eoc-clean
bundle-av:
- $(Q)$(MAKE) bundle-standalone BUNDLE_TYPE=av BOARDS="$(AV_BOARDS)" PLC_BINS="$(AV_PLC_BINS)" UNUSE="$(AV_UNUSE)"
+ $(Q)$(MAKE) bundle-standalone BUNDLE_TYPE=av BOARDS="$(AV_BOARDS)" PLC_BINS="$(AV_PLC_BINS)" UNUSE="$(AV_UNUSE)" DEBUG_BINS="$(AV_DEBUG_BINS)"
bundle-eoc:
- $(Q)$(MAKE) bundle-standalone BUNDLE_TYPE=eoc BOARDS="$(EOC_BOARDS)" PLC_BINS="$(EOC_PLC_BINS)" UNUSE="$(EOC_UNUSE)"
+ $(Q)$(MAKE) bundle-standalone BUNDLE_TYPE=eoc BOARDS="$(EOC_BOARDS)" PLC_BINS="$(EOC_PLC_BINS)" UNUSE="$(EOC_UNUSE)" DEBUG_BINS="$(EOC_DEBUG_BINS)"
bundle-av-clean:
$(Q)$(MAKE) bundle-clean-standalone BUNDLE_TYPE=av
@@ -114,14 +117,22 @@ bundle-standalone:
$(Q)echo "Generate end of Bundle archive..."
$(Q)cd $(BUNDLE_UPPER_PATH) ; tar -rf $(BUNDLE_NAME).tar $(notdir $(BUNDLE_PATH))/$(notdir $(BUNDLE_GENBIN_PATH))
$(Q)bzip2 $(BUNDLE_UPPER_PATH)/$(BUNDLE_NAME).tar
+ $(Q)[ "$(DEBUG_BINS)" = "" ] || $(MAKE) $(DEBUG_BINS)
bundle-clean-standalone:
$(Q)rm -rf $(BUNDLE_PATH)
+cesar-plc-debug:
+ $(Q)$(MAKE) -C $(CESAR_PATH)/plc clean
+ $(Q)rm -fr $(CESAR_PATH)/plc/obj
+ $(Q)$(MAKE) -C $(CESAR_PATH)/plc PROJECT_CONFIG=Config.traces
+ $(Q)cp $(CESAR_PATH)/plc/obj/plc.rom $(BUNDLE_UPPER_PATH)/plc-with-traces.rom
+
cesar-plc:
$(Q)$(MAKE) -C $(CESAR_PATH)/plc clean
+ $(Q)rm -fr $(CESAR_PATH)/plc/obj
$(Q)$(MAKE) -C $(CESAR_PATH)/plc
$(Q)cp $(CESAR_PATH)/plc/obj/plc.rom $(BUNDLE_PLCBIN_PATH)/$(CESAR_PLC_NAME)