Commit 11de95ef authored by Simon Duquennoy's avatar Simon Duquennoy
Browse files

Added make target 'viewconf' to ease debugging of configuration flags

parent 9087448d
......@@ -61,6 +61,20 @@ savedefines:
@echo "saving Makefile.$(TARGET).defines"
@echo >Makefile.$(TARGET).defines "DEFINES = $(DEFINES)"
viewconf:
@echo "---------- Make variables: ----------"
@echo "##### \"TARGET\": $(TARGET)"
@echo "##### \"BOARD\": $(BOARD)"
@echo "##### \"MAKE_MAC\": $(MAKE_MAC)"
@echo "##### \"MAKE_NET\": $(MAKE_NET)"
@echo "##### \"CONTIKI_WITH_RPL\": $(CONTIKI_WITH_RPL)"
@echo "##### \"CONTIKI_WITH_RPL_LITE\": $(CONTIKI_WITH_RPL_LITE)"
@echo "----------- C variables: ------------"
$(Q)$(CC) $(CFLAGS) -E $(CONTIKI)/tools/viewconf.c | grep \#\#\#\#\#
@echo "-------------------------------------"
@echo "To view more Make variables, edit $(CONTIKI)/Makefile.include, rule 'viewconf'"
@echo "To view more C variables, edit $(CONTIKI)/tools/viewconf.c"
OBJECTDIR = obj_$(TARGET)
LOWERCASE = -abcdefghijklmnopqrstuvwxyz/
......
#include "contiki.h"
##### "PROJECT_CONF_PATH": PROJECT_CONF_PATH
##### "MAC_CONF_WITH_NULLMAC": MAC_CONF_WITH_NULLMAC
##### "MAC_CONF_WITH_CSMA": MAC_CONF_WITH_CSMA
##### "MAC_CONF_WITH_TSCH": MAC_CONF_WITH_TSCH
##### "MAC_CONF_WITH_OTHER": MAC_CONF_WITH_OTHER
##### "NETSTACK_CONF_WITH_NULLNET": NETSTACK_CONF_WITH_NULLNET
##### "NETSTACK_CONF_WITH_IPV6": NETSTACK_CONF_WITH_IPV6
##### "NETSTACK_CONF_WITH_OTHER": NETSTACK_CONF_WITH_OTHER
##### "CONTIKI_VERSION_STRING": CONTIKI_VERSION_STRING
##### "AUTOSTART_ENABLE": AUTOSTART_ENABLE
##### "QUEUEBUF_CONF_NUM": QUEUEBUF_CONF_NUM
##### "NBR_TABLE_CONF_MAX_NEIGHBORS": NBR_TABLE_CONF_MAX_NEIGHBORS
##### "NETSTACK_MAX_ROUTE_ENTRIES": NETSTACK_MAX_ROUTE_ENTRIES
##### "UIP_CONF_BUFFER_SIZE": UIP_CONF_BUFFER_SIZE
##### "UIP_CONF_ROUTER": UIP_CONF_ROUTER
##### "NBR_TABLE_FIND_REMOVABLE": NBR_TABLE_FIND_REMOVABLE
##### "UIP_CONF_UDP": UIP_CONF_UDP
##### "UIP_CONF_UDP_CONNS": UIP_CONF_UDP_CONNS
##### "UIP_CONF_TCP": UIP_CONF_TCP
##### "UIP_CONF_TCP_CONNS": UIP_CONF_TCP_CONNS
##### "UIP_CONF_ND6_SEND_RA": UIP_CONF_ND6_SEND_RA
##### "UIP_CONF_ND6_SEND_NS": UIP_CONF_ND6_SEND_NS
##### "UIP_CONF_ND6_AUTOFILL_NBR_CACHE": UIP_CONF_ND6_AUTOFILL_NBR_CACHE
##### "UIP_CONF_ND6_SEND_NA": UIP_CONF_ND6_SEND_NA
##### "SICSLOWPAN_CONF_FRAG": SICSLOWPAN_CONF_FRAG
##### "SICSLOWPAN_CONF_MAC_MAX_PAYLOAD": SICSLOWPAN_CONF_MAC_MAX_PAYLOAD
##### "SICSLOWPAN_CONF_COMPRESSION": SICSLOWPAN_CONF_COMPRESSION
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment