Skip to content
Snippets Groups Projects
Unverified Commit 8e4b6ed1 authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #9824 from cladmi/pr/make/jerryscript/clean

 pkg/jerryscript: build into '$(BINDIR)' and cleanups
parents c96021b0 3a125b63
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,10 @@ CFLAGS += -Wno-implicit-fallthrough ...@@ -9,11 +9,10 @@ CFLAGS += -Wno-implicit-fallthrough
# disable warnings when compiling with LLVM for board native # disable warnings when compiling with LLVM for board native
ifeq ($(TOOLCHAIN)_$(BOARD),llvm_native) ifeq ($(TOOLCHAIN)_$(BOARD),llvm_native)
export CFLAGS += -Wno-macro-redefined -Wno-gnu-folding-constant CFLAGS += -Wno-macro-redefined -Wno-gnu-folding-constant
endif endif
all: git-download all: git-download
@cp Makefile.jerryscript $(PKG_BUILDDIR)/Makefile "$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.jerryscript all
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk include $(RIOTBASE)/pkg/pkg.mk
BUILD_DIR ?= $(CURDIR)/riot BUILD_DIR ?= $(BINDIR)/jerryscript
JERRYHEAP ?= 16 JERRYHEAP ?= 16
...@@ -8,12 +8,11 @@ ifeq ($(TOOLCHAIN)_$(BOARD),llvm_native) ...@@ -8,12 +8,11 @@ ifeq ($(TOOLCHAIN)_$(BOARD),llvm_native)
EXT_CFLAGS :=-D__TARGET_RIOT -Wno-conversion EXT_CFLAGS :=-D__TARGET_RIOT -Wno-conversion
endif endif
.PHONY: libjerry riot-jerry flash clean .PHONY: all libjerry
# all: libjerry riot-jerry all: libjerry
libjerry: libjerry:
mkdir -p $(BUILD_DIR)
cmake -B$(BUILD_DIR) -H./ \ cmake -B$(BUILD_DIR) -H./ \
-DCMAKE_SYSTEM_NAME=RIOT \ -DCMAKE_SYSTEM_NAME=RIOT \
-DCMAKE_SYSTEM_PROCESSOR="$(MCPU)" \ -DCMAKE_SYSTEM_PROCESSOR="$(MCPU)" \
...@@ -33,5 +32,3 @@ libjerry: ...@@ -33,5 +32,3 @@ libjerry:
cp $(BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a cp $(BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
cp $(BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a cp $(BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
cp $(BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a cp $(BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a
include $(RIOTBASE)/Makefile.base
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment