Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
1bf222e0
Unverified
Commit
1bf222e0
authored
7 years ago
by
Francisco Acosta
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8286 from smlng/enh/pkg/jerryscript
pkg: fix build jerryscript on macOS
parents
198ced49
1e0c49ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/javascript/Makefile
+2
-0
2 additions, 0 deletions
examples/javascript/Makefile
pkg/jerryscript/Makefile
+6
-1
6 additions, 1 deletion
pkg/jerryscript/Makefile
pkg/jerryscript/Makefile.jerryscript
+8
-8
8 additions, 8 deletions
pkg/jerryscript/Makefile.jerryscript
with
16 additions
and
9 deletions
examples/javascript/Makefile
+
2
−
0
View file @
1bf222e0
...
...
@@ -21,8 +21,10 @@ BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \
# development process:
DEVELHELP
?=
1
ifneq
($(BOARD),native)
# Set stack size to something (conservatively) enormous
CFLAGS
+=
-DTHREAD_STACKSIZE_MAIN
=
9092
endif
# Add the package for Jerryscript
USEPKG
+=
jerryscript
...
...
This diff is collapsed.
Click to expand it.
pkg/jerryscript/Makefile
+
6
−
1
View file @
1bf222e0
PKG_NAME
=
jerryscript
PKG_URL
=
https://github.com/jerryscript-project/jerryscript.git
PKG_VERSION
=
e6
2b5b
601bc1caa3e4d8172824988536ed6138f3
PKG_VERSION
=
bd574956e370
2b
c
5b
0512ad835b1df896cf00626
PKG_LICENSE
=
Apache-2.0
.PHONY
:
all
CFLAGS
+=
-Wno-implicit-fallthrough
# disable warnings when compiling with LLVM for board native
ifeq
($(TOOLCHAIN)_$(BOARD),llvm_native)
export
CFLAGS
+=
-Wno-macro-redefined
-Wno-gnu-folding-constant
endif
all
:
git-download
@
cp
Makefile.jerryscript
$(
PKG_BUILDDIR
)
/Makefile
"
$(
MAKE
)
"
-C
$(
PKG_BUILDDIR
)
...
...
This diff is collapsed.
Click to expand it.
pkg/jerryscript/Makefile.jerryscript
+
8
−
8
View file @
1bf222e0
...
...
@@ -2,9 +2,9 @@ BUILD_DIR ?= $(CURDIR)/riot
JERRYHEAP
?=
16
EXT_CFLAGS
:=
-D__TARGET_RIOT
EXT_CFLAGS
:=
-D__TARGET_RIOT
EXT_CFLAGS
+=
$(
CFLAGS
)
EXT_CFLAGS
+=
$(
CFLAGS
)
.PHONY
:
libjerry riot-jerry flash clean
...
...
@@ -13,16 +13,16 @@ JERRYHEAP ?= 16
libjerry
:
mkdir
-p
$(
BUILD_DIR
)
cmake
-B
$(
BUILD_DIR
)
-H
./
\
-DCMAKE_SYSTEM_NAME
=
RIOT
\
-DCMAKE_SYSTEM_PROCESSOR
=
"
$(
MCPU
)
"
\
-DCMAKE_C_COMPILER
=
$(
CC
)
\
-DCMAKE_C_COMPILER_WORKS
=
TRUE
\
-DENABLE_LTO
=
OFF
\
-DFEATURE_VALGRIND
=
OFF
\
-D
CMAKE_TOOLCHAIN_FILE
=
cmake/toolchain_external.cmake
\
-D
ENABLE_ALL_IN_ONE
=
OFF
\
-DJERRY_LIBC
=
OFF
\
-DJERRY_CMDLINE
=
OFF
\
-DJERRY_LIBM
=
OFF
\
-DENABLE_ALL_IN_ONE
=
OFF
\
-DEXTERNAL_CMAKE_SYSTEM_PROCESSOR
=
"
$(
MCPU
)
"
\
-DEXTERNAL_CMAKE_C_COMPILER
=
$(
CC
)
\
-DEXTERNAL_CMAKE_C_COMPILER_ID
=
GNU
\
-DJERRY_CMDLINE
=
OFF
\
-DEXTERNAL_COMPILE_FLAGS
=
"
$(
EXT_CFLAGS
)
"
\
-DMEM_HEAP_SIZE_KB
=
$(
JERRYHEAP
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment