targets: merge js2c.py into targets/tools folder

* also add .PHONY to target makefiles

JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
This commit is contained in:
SaeHie Park
2016-01-14 09:01:21 +09:00
parent feb27a5fc6
commit 25b8351774
4 changed files with 12 additions and 150 deletions
+5 -2
View File
@@ -26,6 +26,7 @@ SRCPATH = targets/esp8266/source
COPYTARGET = targets/esp8266/libs
USBDEVICE ?= /dev/ttyUSB0
JERRYHEAP ?= 20
ESPTOOL ?= /opt/Espressif/esptool-py/esptool.py
# compile flags
ESP_CFLAGS := -D__TARGET_ESP8266 -D__attr_always_inline___=
@@ -47,6 +48,8 @@ JERRY_BUILD_FILES := $(SRCPATH)/jerry_extapi.cpp
JERRY_BUILD_FILES := $(JERRY_BUILD_FILES);$(SRCPATH)/jerry_run.cpp
.PHONY: jerry js2c mbed check-env flash clean
all: check-env jerry js2c mbed
@@ -78,7 +81,7 @@ jerry:
js2c:
cd targets/esp8266; ./js2c.py
cd targets/esp8266; ../tools/js2c.py
mbed:
@@ -98,7 +101,7 @@ endif
flash:
/opt/Espressif/esptool-py/esptool.py --port $(USBDEVICE) write_flash \
$(ESPTOOL) --port $(USBDEVICE) write_flash \
0x00000 $(SDK_PATH)/bin/"boot_v1.4(b1).bin" \
0x01000 $(BIN_PATH)/upgrade/user1.2048.new.3.bin \
0x81000 $(BIN_PATH)/upgrade/user2.2048.new.3.bin \