13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
- TYPE ?= release
17
- INTERM ?= build/obj-riot-stm32f4
18
- OUTPUT ?= build/bin/$(TYPE).riotstm32f4
19
- COPYTARGET ?= targets/riot-stm32f4/bin/
16
+ BUILD_DIR ?= build/riotstm32f4
17
+ COPYTARGET ?= targets/riot-stm32f4/bin
20
18
21
19
JERRYHEAP ?= 16
22
20
@@ -29,24 +27,24 @@ EXT_CFLAGS += -Wno-error=format=
29
27
all: libjerry riot-jerry
30
28
31
29
libjerry:
32
- mkdir -p $(INTERM)
33
- mkdir -p $(OUTPUT)
30
+ mkdir -p $(BUILD_DIR)
34
31
mkdir -p $(COPYTARGET)
35
- cmake -B$(INTERM) -H./ \
36
- -DEXTERNAL_PORT_DIR=UNDEFINED \
32
+ cmake -B$(BUILD_DIR) -H./ \
37
33
-DENABLE_LTO=OFF \
38
- -DENABLE_VALGRIND=OFF \
39
- -DCMAKE_TOOLCHAIN_FILE=build/configs/toolchain_external.cmake \
34
+ -DFEATURE_VALGRIND=OFF \
35
+ -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_external.cmake \
36
+ -DJERRY_LIBC=OFF \
37
+ -DJERRY_CMDLINE=OFF \
40
38
-DCOMPILER_DEFAULT_LIBC=ON \
39
+ -DENABLE_ALL_IN_ONE=OFF \
41
40
-DEXTERNAL_CMAKE_SYSTEM_PROCESSOR=armv7l-hf \
42
41
-DEXTERNAL_CMAKE_C_COMPILER=arm-none-eabi-gcc \
43
42
-DEXTERNAL_CMAKE_C_COMPILER_ID=GNU \
44
43
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
45
- -DEXTERNAL_MEM_HEAP_SIZE_KB =$(JERRYHEAP)
44
+ -DMEM_HEAP_SIZE_KB =$(JERRYHEAP)
46
45
47
- make -C $(INTERM) $(TYPE).external
48
- cp `cat $(INTERM)/$(TYPE).external/list` $(OUTPUT)/.
49
- cp $(OUTPUT)/lib$(TYPE).jerry-core.a $(COPYTARGET)/libjerrycore.a
46
+ make -C$(BUILD_DIR) jerry-core
47
+ cp $(BUILD_DIR)/lib/libjerry-core.a $(COPYTARGET)/libjerrycore.a
50
48
51
49
riot-jerry: libjerry
52
50
make -f ./targets/riot-stm32f4/Makefile
@@ -55,7 +53,6 @@ flash: libjerry
55
53
make -f ./targets/riot-stm32f4/Makefile flash
56
54
57
55
clean:
58
- rm -rf $(INTERM)
59
56
rm -rf $(OUTPUT)
60
57
rm -rf $(COPYTARGET)
61
58
make -f ./targets/riot-stm32f4/Makefile clean
0 commit comments