mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #10789 from cladmi/pr/build_dir/fix_jerryscript
pkg/jerryscript: namespace BUILD_DIR variable
This commit is contained in:
commit
d4b92e931e
@ -1,4 +1,4 @@
|
|||||||
BUILD_DIR ?= $(BINDIR)/jerryscript
|
JERRYSCRIPT_BUILD_DIR ?= $(BINDIR)/jerryscript
|
||||||
|
|
||||||
JERRYHEAP ?= 16
|
JERRYHEAP ?= 16
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ endif
|
|||||||
all: libjerry
|
all: libjerry
|
||||||
|
|
||||||
libjerry:
|
libjerry:
|
||||||
cmake -B$(BUILD_DIR) -H./ \
|
cmake -B$(JERRYSCRIPT_BUILD_DIR) -H./ \
|
||||||
-DCMAKE_SYSTEM_NAME=RIOT \
|
-DCMAKE_SYSTEM_NAME=RIOT \
|
||||||
-DCMAKE_SYSTEM_PROCESSOR="$(MCPU)" \
|
-DCMAKE_SYSTEM_PROCESSOR="$(MCPU)" \
|
||||||
-DCMAKE_C_COMPILER=$(CC) \
|
-DCMAKE_C_COMPILER=$(CC) \
|
||||||
@ -42,7 +42,7 @@ libjerry:
|
|||||||
-DEXTERNAL_COMPILE_FLAGS="$(INCLUDES) $(EXT_CFLAGS)" \
|
-DEXTERNAL_COMPILE_FLAGS="$(INCLUDES) $(EXT_CFLAGS)" \
|
||||||
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP)
|
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP)
|
||||||
|
|
||||||
"$(MAKE)" -C $(BUILD_DIR) jerry-core jerry-ext jerry-port-default-minimal
|
"$(MAKE)" -C $(JERRYSCRIPT_BUILD_DIR) jerry-core jerry-ext jerry-port-default-minimal
|
||||||
cp $(BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
|
cp $(JERRYSCRIPT_BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
|
||||||
cp $(BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
|
cp $(JERRYSCRIPT_BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
|
||||||
cp $(BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a
|
cp $(JERRYSCRIPT_BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a
|
||||||
|
Loading…
Reference in New Issue
Block a user