mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d0c50918f8
Added atmega328p to BOARD_BLACKLIST where needed
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
APPLICATION = lua_repl
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
BOARD ?= native
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
|
|
arduino-mega2560 arduino-nano arduino-uno atmega328p \
|
|
chronos hifive1 hifive1b mega-xplained microduino-corerf \
|
|
msb-430 msb-430h pic32-clicker pic32-wifire telosb \
|
|
waspmote-pro wsn430-v1_3b wsn430-v1_4 z1
|
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
|
# which is not needed in a production environment but helps in the
|
|
# development process:
|
|
DEVELHELP ?= 1
|
|
|
|
# Uncomment the following lines to enable debugging features.
|
|
#CFLAGS_OPT = -Og
|
|
#CFLAGS += -DDEBUG_ASSERT_VERBOSE -DLUA_DEBUG
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
QUIET ?= 1
|
|
|
|
# This value is in excess because we are not sure of the exact requirements of
|
|
# lua (see the package's docs). It must be fixed in the future by taking
|
|
# appropriate measurements.
|
|
CFLAGS += -DTHREAD_STACKSIZE_MAIN='(THREAD_STACKSIZE_DEFAULT+7000)'
|
|
|
|
USEPKG += lua
|
|
|
|
LUA_PATH = $(BINDIR)/lua
|
|
|
|
# add directory of generated *.lua.h files to include path
|
|
CFLAGS += -I$(LUA_PATH)
|
|
|
|
# generate .lua.h header files of .lua files
|
|
LUA = $(wildcard *.lua)
|
|
|
|
LUA_H = $(LUA:%.lua=$(LUA_PATH)/%.lua.h)
|
|
|
|
BUILDDEPS += $(LUA_H) $(LUA_PATH)/
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# The code below generates a header file from any .lua scripts in the
|
|
# example directory. The header file contains a byte array of the
|
|
# ASCII characters in the .lua script.
|
|
|
|
$(LUA_PATH)/:
|
|
$(Q)mkdir -p $@
|
|
|
|
# FIXME: This way of embedding lua code is not robust. A proper script will
|
|
# be included later.
|
|
$(LUA_H): $(LUA_PATH)/%.lua.h: %.lua | $(LUA_PATH)/
|
|
$(Q)xxd -i $< | sed 's/^unsigned/const unsigned/g' > $@
|