mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Remove ARTIK 053 from the targets. (#3206)
ARTIK devices are no longer supported by the manufacturer. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs r.takacs2@partner.samsung.com
This commit is contained in:
parent
848a9854c3
commit
6f515f079e
@ -143,15 +143,6 @@ matrix:
|
||||
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
||||
packages: [clang-3.9, gcc-arm-embedded, gcc-multilib]
|
||||
|
||||
- name: "Tizen RT/Artik053 Build Test"
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
||||
packages: [gcc-arm-embedded, genromfs]
|
||||
install: make -f ./targets/tizenrt-artik053/Makefile.travis install
|
||||
script: make -f ./targets/tizenrt-artik053/Makefile.travis script
|
||||
|
||||
- name: "ESP8266 Build Test"
|
||||
install: make -f ./targets/esp8266/Makefile.travis install-noapt
|
||||
script: make -f ./targets/esp8266/Makefile.travis script
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
set(CMAKE_SYSTEM_NAME TizenRT)
|
||||
set(CMAKE_SYSTEM_PROCESSOR armv7l)
|
||||
set(CMAKE_SYSTEM_VERSION ARTIK053)
|
||||
|
||||
set(FLAGS_COMMON_ARCH -mcpu=cortex-r4 -mthumb -mfpu=vfpv3
|
||||
-fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-strength-reduce
|
||||
-Wall -Werror -Wshadow -Wno-error=conversion)
|
||||
|
||||
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
|
||||
set(CMAKE_C_COMPILER_WORKS TRUE)
|
||||
@ -1,37 +0,0 @@
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
JERRYHEAP ?= 16
|
||||
BUILD_DIR ?= build
|
||||
|
||||
EXT_CFLAGS += -I. -isystem ../TizenRT/os/include
|
||||
|
||||
.PHONY: libjerry clean
|
||||
|
||||
all: libjerry
|
||||
|
||||
libjerry:
|
||||
cmake -B$(BUILD_DIR) -H./ \
|
||||
-DENABLE_LTO=OFF \
|
||||
-DENABLE_ALL_IN_ONE=OFF \
|
||||
-DJERRY_CMDLINE=OFF \
|
||||
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
||||
-DJERRY_GLOBAL_HEAP_SIZE=$(JERRYHEAP) \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_mcu_artik053.cmake
|
||||
|
||||
make -C$(BUILD_DIR) jerry-core jerry-libm jerry-ext
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
@ -1,44 +0,0 @@
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
# Default target for running the build test outside the Travis CI environment.
|
||||
all:
|
||||
$(MAKE) install
|
||||
$(MAKE) script
|
||||
|
||||
|
||||
## Targets for installing build dependencies of the Tizen RT JerryScript target.
|
||||
|
||||
# Fetch Tizen RT repository.
|
||||
install:
|
||||
git clone https://github.com/Samsung/TizenRT.git ../TizenRT -b 2.0_Public_M2
|
||||
|
||||
|
||||
## Targets for building Tizen RT with JerryScript.
|
||||
|
||||
# Link in files from the Tizen RT JerryScript target directory under the Tizen RT tree.
|
||||
script-add-jerryscript:
|
||||
cp -R targets/tizenrt-artik053/apps/jerryscript/ ../TizenRT/apps/system/
|
||||
cp -R targets/tizenrt-artik053/configs/jerryscript/ ../TizenRT/build/configs/artik053/
|
||||
|
||||
# Build the JerryScript library.
|
||||
script-libjerry:
|
||||
$(MAKE) -f targets/tizenrt-artik053/Makefile.tizenrt
|
||||
|
||||
# Configure and build the firmware (Tizen RT with JerryScript).
|
||||
script: script-add-jerryscript script-libjerry
|
||||
cd ../TizenRT/os/tools && ./configure.sh artik053/jerryscript
|
||||
mkdir -p ../TizenRT/build/output/res
|
||||
$(MAKE) -C ../TizenRT/os
|
||||
@ -1,146 +0,0 @@
|
||||
### About
|
||||
|
||||
This folder contains files to build and run JerryScript on [TizenRT](https://github.com/Samsung/TizenRT) with Artik053 board.
|
||||
|
||||
### How to build
|
||||
|
||||
#### TL; DR
|
||||
|
||||
If you are in a hurry, run the following commands:
|
||||
|
||||
```
|
||||
$ sudo apt-add-repository -y "ppa:team-gcc-arm-embedded/ppa"
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install gcc-arm-embedded genromfs
|
||||
$ git clone https://github.com/jerryscript-project/jerryscript.git
|
||||
$ cd jerryscript
|
||||
$ make -f targets/tizenrt-artik053/Makefile.travis install
|
||||
$ make -f targets/tizenrt-artik053/Makefile.travis script
|
||||
```
|
||||
|
||||
Next, go to [step 7](#7-flash-binary)
|
||||
|
||||
|
||||
#### Build steps in detail
|
||||
|
||||
#### 1. Set up build environment
|
||||
|
||||
* Install toolchain
|
||||
|
||||
Get [gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar](https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update).
|
||||
Untar the archive and export the path.
|
||||
|
||||
```
|
||||
$ tar xvf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar
|
||||
$ export PATH=<Your Toolchain PATH>:$PATH
|
||||
```
|
||||
|
||||
* Get jerryscript and TizenRT sources.
|
||||
|
||||
```
|
||||
$ mkdir jerry-tizenrt
|
||||
$ cd jerry-tizenrt
|
||||
$ git clone https://github.com/jerryscript-project/jerryscript.git
|
||||
$ git clone https://github.com/Samsung/TizenRT.git -b 2.0_Public_M2
|
||||
```
|
||||
|
||||
The following directory structure is created after these commands:
|
||||
|
||||
```
|
||||
jerry-tizenrt
|
||||
├── jerryscript
|
||||
└── TizenRT
|
||||
```
|
||||
|
||||
#### 2. Add jerryscript configuration for TizenRT
|
||||
|
||||
```
|
||||
$ cp -r jerryscript/targets/tizenrt-artik053/apps/jerryscript/ TizenRT/apps/system/
|
||||
$ cp -r jerryscript/targets/tizenrt-artik053/configs/jerryscript/ TizenRT/build/configs/artik053/
|
||||
```
|
||||
|
||||
#### 3. Configure TizenRT
|
||||
|
||||
```
|
||||
$ cd TizenRT/os/tools
|
||||
$ ./configure.sh artik053/jerryscript
|
||||
```
|
||||
|
||||
#### 4. Build JerryScript for TizenRT
|
||||
|
||||
```
|
||||
# assuming you are in jerry-tizenrt folder
|
||||
jerryscript/tools/build.py \
|
||||
--clean \
|
||||
--lto=OFF \
|
||||
--jerry-cmdline=OFF \
|
||||
--all-in-one=OFF \
|
||||
--mem-heap=70 \
|
||||
--profile=es2015-subset \
|
||||
--compile-flag="--sysroot=${PWD}/TizenRT/os" \
|
||||
--toolchain=${PWD}/jerryscript/cmake/toolchain_mcu_artik053.cmake
|
||||
```
|
||||
|
||||
Alternatively, there is a Makefile in the `targets/tizenrt-artik053/` folder that also helps to build JerryScript for TizenRT.
|
||||
|
||||
```
|
||||
# assuming you are in jerry-tizenrt folder
|
||||
$ cd jerryscript
|
||||
$ make -f targets/tizenrt-artik053/Makefile.tizenrt
|
||||
```
|
||||
|
||||
#### 5. Add your JavaScript program to TizenRT (optional)
|
||||
|
||||
If you have script files for JerryScript, you can add them to TizenRT.
|
||||
These files will be flashed into the target's `/rom` folder.
|
||||
Note that your content cannot exceed 1200 KB.
|
||||
|
||||
```
|
||||
# assuming you are in jerry-tizenrt folder
|
||||
cp jerryscript/tests/hello.js TizenRT/tools/fs/contents/
|
||||
```
|
||||
|
||||
#### 6. Build TizenRT binary
|
||||
|
||||
```
|
||||
# assuming you are in jerry-tizenrt folder
|
||||
$ cd TizenRT/os
|
||||
$ make
|
||||
```
|
||||
|
||||
Binaries are available in `TizenRT/build/output/bin`.
|
||||
|
||||
#### 7. Flash binary
|
||||
|
||||
```
|
||||
make download ALL
|
||||
```
|
||||
|
||||
Reboot the device.
|
||||
|
||||
For more information, see [How to program a binary](https://github.com/Samsung/TizenRT/blob/master/build/configs/artik053/README.md).
|
||||
|
||||
|
||||
#### 8. Run JerryScript
|
||||
|
||||
Use a terminal program (e.g., `minicom`) with baud rate of `115200`.
|
||||
(Note: Actual device path may vary, e.g., `/dev/ttyUSB1`.)
|
||||
|
||||
```
|
||||
sudo minicom --device=/dev/ttyUSB0 --baud=115200
|
||||
```
|
||||
|
||||
Run `jerry` with javascript file(s):
|
||||
|
||||
```
|
||||
TASH>>jerry /rom/hello.js
|
||||
Hello JerryScript!
|
||||
```
|
||||
|
||||
Running the program without argument executes a built-in demo:
|
||||
|
||||
```
|
||||
TASH>>jerry
|
||||
No input files, running a hello world demo:
|
||||
Hello World from JerryScript
|
||||
```
|
||||
@ -1,30 +0,0 @@
|
||||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config JERRYSCRIPT
|
||||
bool "Jerryscript"
|
||||
default n
|
||||
---help---
|
||||
Enable Jerryscript ECMAScript 5.1 interpreter
|
||||
|
||||
if JERRYSCRIPT
|
||||
|
||||
config JERRYSCRIPT_PROGNAME
|
||||
string "Program name"
|
||||
default "jerry"
|
||||
depends on BUILD_KERNEL
|
||||
---help---
|
||||
This is the name of the program that will be
|
||||
use when the NSH ELF program is installed.
|
||||
|
||||
config JERRYSCRIPT_PRIORITY
|
||||
int "Jerryscript task priority"
|
||||
default 100
|
||||
|
||||
config JERRYSCRIPT_STACKSIZE
|
||||
int "Jerryscript stack size"
|
||||
default 16384
|
||||
|
||||
endif # JERRYSCRIPT
|
||||
@ -1,17 +0,0 @@
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ifeq ($(CONFIG_JERRYSCRIPT),y)
|
||||
CONFIGURED_APPS += system/jerryscript
|
||||
endif
|
||||
@ -1,167 +0,0 @@
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
###########################################################################
|
||||
#
|
||||
# Copyright 2016 Samsung Electronics All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
# either express or implied. See the License for the specific
|
||||
# language governing permissions and limitations under the License.
|
||||
#
|
||||
|
||||
############################################################################
|
||||
#
|
||||
# Copyright (C) 2008, 2010-2013 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/.config
|
||||
-include $(TOPDIR)/Make.defs
|
||||
include $(APPDIR)/Make.defs
|
||||
|
||||
# JerryScript built-in application information.
|
||||
CONFIG_JERRYSCRIPT_PRIORITY ?= SCHED_PRIORITY_DEFAULT
|
||||
CONFIG_JERRYSCRIPT_PROGNAME ?= jerry$(EXEEXT)
|
||||
CONFIG_JERRYSCRIPT_STACKSIZE ?= 32768
|
||||
|
||||
PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY)
|
||||
PROGNAME = $(CONFIG_JERRYSCRIPT_PROGNAME)
|
||||
STACKSIZE = $(CONFIG_JERRYSCRIPT_STACKSIZE)
|
||||
|
||||
# Path to the JerryScript project. If not specified, it is supposed
|
||||
# that JerryScript is located next to the TizenRT folder.
|
||||
JERRYSCRIPT_ROOT_DIR ?= ../../../../jerryscript
|
||||
|
||||
CFLAGS += -std=c99
|
||||
CFLAGS += -I$(JERRYSCRIPT_ROOT_DIR)/jerry-core/include
|
||||
CFLAGS += -I$(JERRYSCRIPT_ROOT_DIR)/jerry-ext/include
|
||||
|
||||
EXTRA_LIBS += libjerry-core.a libjerry-libm.a
|
||||
LINKLIBS=$(EXTRA_LIBS)
|
||||
|
||||
APPNAME = jerry
|
||||
ASRCS = setjmp.S
|
||||
MAINSRC = jerry_main.c
|
||||
|
||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||
MAINOBJ = $(MAINSRC:.c=$(OBJEXT))
|
||||
|
||||
SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
|
||||
OBJS = $(AOBJS) $(COBJS)
|
||||
|
||||
ifneq ($(CONFIG_BUILD_KERNEL),y)
|
||||
OBJS += $(MAINOBJ)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
BIN = $(APPDIR)\libapps$(LIBEXT)
|
||||
else
|
||||
ifeq ($(WINTOOL),y)
|
||||
BIN = $(APPDIR)\\libapps$(LIBEXT)
|
||||
else
|
||||
BIN = $(APPDIR)/libapps$(LIBEXT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}"
|
||||
else
|
||||
INSTALL_DIR = $(BIN_DIR)
|
||||
endif
|
||||
|
||||
|
||||
ROOTDEPPATH = --dep-path .
|
||||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
|
||||
|
||||
all: copylibs .built
|
||||
.PHONY: copylibs context depend clean distclean
|
||||
|
||||
$(AOBJS): %$(OBJEXT): %.S
|
||||
$(call ASSEMBLE, $<, $@)
|
||||
|
||||
$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c
|
||||
$(call COMPILE, $<, $@)
|
||||
|
||||
.built: $(OBJS)
|
||||
$(call ARCHIVE, $(BIN), $(OBJS))
|
||||
$(Q) touch .built
|
||||
|
||||
copylibs:
|
||||
cp $(JERRYSCRIPT_ROOT_DIR)/build/lib/lib*.a $(TOPDIR)/../build/output/libraries/
|
||||
|
||||
install:
|
||||
|
||||
context:
|
||||
|
||||
# Create dependencies
|
||||
|
||||
.depend: Makefile $(SRCS)
|
||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||
$(Q) touch $@
|
||||
|
||||
depend: .depend
|
||||
|
||||
clean:
|
||||
$(call DELFILE, .built)
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
$(call DELFILE, Make.dep)
|
||||
$(call DELFILE, .depend)
|
||||
|
||||
-include Make.dep
|
||||
.PHONY: preconfig
|
||||
preconfig:
|
||||
@ -1,621 +0,0 @@
|
||||
/* Copyright JS Foundation and other contributors, http://js.foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <tinyara/fs/fs_utils.h>
|
||||
|
||||
#include "jerryscript.h"
|
||||
#include "jerryscript-ext/debugger.h"
|
||||
#include "jerryscript-ext/handler.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "setjmp.h"
|
||||
|
||||
#include <apps/shell/tash.h> // To register tash command
|
||||
|
||||
/**
|
||||
* Maximum command line arguments number.
|
||||
*/
|
||||
#define JERRY_MAX_COMMAND_LINE_ARGS (16)
|
||||
|
||||
/**
|
||||
* Standalone Jerry exit codes.
|
||||
*/
|
||||
#define JERRY_STANDALONE_EXIT_CODE_OK (0)
|
||||
#define JERRY_STANDALONE_EXIT_CODE_FAIL (1)
|
||||
|
||||
/**
|
||||
* Context size of the SYNTAX_ERROR
|
||||
*/
|
||||
#define SYNTAX_ERROR_CONTEXT_SIZE 2
|
||||
|
||||
/**
|
||||
* Print usage and available options
|
||||
*/
|
||||
static void
|
||||
print_help (char *name)
|
||||
{
|
||||
printf ("Usage: %s [OPTION]... [FILE]...\n"
|
||||
"\n"
|
||||
"Options:\n"
|
||||
" --log-level [0-3]\n"
|
||||
" --mem-stats\n"
|
||||
" --mem-stats-separate\n"
|
||||
" --show-opcodes\n"
|
||||
" --start-debug-server\n"
|
||||
"\n",
|
||||
name);
|
||||
} /* print_help */
|
||||
|
||||
/**
|
||||
* Read source code into buffer.
|
||||
*
|
||||
* Returned value must be freed if it's not NULL.
|
||||
* @return NULL, if read or allocation has failed
|
||||
* pointer to the allocated memory block, otherwise
|
||||
*/
|
||||
static const uint8_t *
|
||||
read_file (const char *file_name, /**< source code */
|
||||
size_t *out_size_p) /**< [out] number of bytes successfully read from source */
|
||||
{
|
||||
FILE *file = fopen (get_fullpath(file_name), "r");
|
||||
if (file == NULL)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: cannot open file: %s\n", file_name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int fseek_status = fseek (file, 0, SEEK_END);
|
||||
if (fseek_status != 0)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Failed to seek (error: %d)\n", fseek_status);
|
||||
fclose (file);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
long script_len = ftell (file);
|
||||
if (script_len < 0)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Failed to get the file size(error %ld)\n", script_len);
|
||||
fclose (file);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rewind (file);
|
||||
|
||||
uint8_t *buffer = (uint8_t *) malloc (script_len);
|
||||
|
||||
if (buffer == NULL)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Out of memory error\n");
|
||||
fclose (file);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t bytes_read = fread (buffer, 1u, script_len, file);
|
||||
|
||||
if (!bytes_read || bytes_read != script_len)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: failed to read file: %s\n", file_name);
|
||||
free ((void*) buffer);
|
||||
|
||||
fclose (file);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
fclose (file);
|
||||
|
||||
*out_size_p = bytes_read;
|
||||
return (const uint8_t *) buffer;
|
||||
} /* read_file */
|
||||
|
||||
/**
|
||||
* Print error value
|
||||
*/
|
||||
static void
|
||||
print_unhandled_exception (jerry_value_t error_value) /**< error value */
|
||||
{
|
||||
assert (jerry_value_is_error (error_value));
|
||||
|
||||
error_value = jerry_get_value_from_error (error_value, false);
|
||||
jerry_value_t err_str_val = jerry_value_to_string (error_value);
|
||||
jerry_size_t err_str_size = jerry_get_utf8_string_size (err_str_val);
|
||||
jerry_char_t err_str_buf[256];
|
||||
|
||||
jerry_release_value (error_value);
|
||||
|
||||
if (err_str_size >= 256)
|
||||
{
|
||||
const char msg[] = "[Error message too long]";
|
||||
err_str_size = sizeof (msg) / sizeof (char) - 1;
|
||||
memcpy (err_str_buf, msg, err_str_size);
|
||||
}
|
||||
else
|
||||
{
|
||||
jerry_size_t sz = jerry_string_to_utf8_char_buffer (err_str_val, err_str_buf, err_str_size);
|
||||
assert (sz == err_str_size);
|
||||
err_str_buf[err_str_size] = 0;
|
||||
|
||||
if (jerry_is_feature_enabled (JERRY_FEATURE_ERROR_MESSAGES)
|
||||
&& jerry_get_error_type (error_value) == JERRY_ERROR_SYNTAX)
|
||||
{
|
||||
jerry_char_t *string_end_p = err_str_buf + sz;
|
||||
unsigned int err_line = 0;
|
||||
unsigned int err_col = 0;
|
||||
char *path_str_p = NULL;
|
||||
char *path_str_end_p = NULL;
|
||||
|
||||
/* 1. parse column and line information */
|
||||
for (jerry_char_t *current_p = err_str_buf; current_p < string_end_p; current_p++)
|
||||
{
|
||||
if (*current_p == '[')
|
||||
{
|
||||
current_p++;
|
||||
|
||||
if (*current_p == '<')
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
path_str_p = (char *) current_p;
|
||||
while (current_p < string_end_p && *current_p != ':')
|
||||
{
|
||||
current_p++;
|
||||
}
|
||||
|
||||
path_str_end_p = (char *) current_p++;
|
||||
|
||||
err_line = (unsigned int) strtol ((char *) current_p, (char **) ¤t_p, 10);
|
||||
|
||||
current_p++;
|
||||
|
||||
err_col = (unsigned int) strtol ((char *) current_p, NULL, 10);
|
||||
break;
|
||||
}
|
||||
} /* for */
|
||||
|
||||
if (err_line != 0 && err_col != 0)
|
||||
{
|
||||
unsigned int curr_line = 1;
|
||||
|
||||
bool is_printing_context = false;
|
||||
unsigned int pos = 0;
|
||||
|
||||
/* Temporarily modify the error message, so we can use the path. */
|
||||
*path_str_end_p = '\0';
|
||||
|
||||
size_t source_size;
|
||||
const jerry_char_t *source_p = read_file (path_str_p, &source_size);
|
||||
|
||||
/* Revert the error message. */
|
||||
*path_str_end_p = ':';
|
||||
|
||||
/* 2. seek and print */
|
||||
while (source_p[pos] != '\0')
|
||||
{
|
||||
if (source_p[pos] == '\n')
|
||||
{
|
||||
curr_line++;
|
||||
}
|
||||
|
||||
if (err_line < SYNTAX_ERROR_CONTEXT_SIZE
|
||||
|| (err_line >= curr_line
|
||||
&& (err_line - curr_line) <= SYNTAX_ERROR_CONTEXT_SIZE))
|
||||
{
|
||||
/* context must be printed */
|
||||
is_printing_context = true;
|
||||
}
|
||||
|
||||
if (curr_line > err_line)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if (is_printing_context)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "%c", source_p[pos]);
|
||||
}
|
||||
|
||||
pos++;
|
||||
}
|
||||
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "\n");
|
||||
|
||||
while (--err_col)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "~");
|
||||
}
|
||||
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "^\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Script Error: %s\n", err_str_buf);
|
||||
jerry_release_value (err_str_val);
|
||||
} /* print_unhandled_exception */
|
||||
|
||||
/**
|
||||
* Register a JavaScript function in the global object.
|
||||
*/
|
||||
static void
|
||||
register_js_function (const char *name_p, /**< name of the function */
|
||||
jerry_external_handler_t handler_p) /**< function callback */
|
||||
{
|
||||
jerry_value_t result_val = jerryx_handler_register_global ((const jerry_char_t *) name_p, handler_p);
|
||||
|
||||
if (jerry_value_is_error (result_val))
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_WARNING, "Warning: failed to register '%s' method.", name_p);
|
||||
}
|
||||
|
||||
jerry_release_value (result_val);
|
||||
} /* register_js_function */
|
||||
|
||||
/**
|
||||
* JerryScript log level
|
||||
*/
|
||||
static jerry_log_level_t jerry_log_level = JERRY_LOG_LEVEL_ERROR;
|
||||
|
||||
|
||||
/**
|
||||
* JerryScript command main
|
||||
*/
|
||||
static int
|
||||
jerry_cmd_main (int argc, char *argv[])
|
||||
{
|
||||
|
||||
if (argc > JERRY_MAX_COMMAND_LINE_ARGS)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR,
|
||||
"Too many command line arguments. Current maximum is %d\n",
|
||||
JERRY_MAX_COMMAND_LINE_ARGS);
|
||||
|
||||
return JERRY_STANDALONE_EXIT_CODE_FAIL;
|
||||
}
|
||||
|
||||
const char *file_names[JERRY_MAX_COMMAND_LINE_ARGS];
|
||||
int i;
|
||||
int files_counter = 0;
|
||||
bool start_debug_server = false;
|
||||
uint16_t debug_port = 5001;
|
||||
|
||||
jerry_init_flag_t flags = JERRY_INIT_EMPTY;
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
if (!strcmp ("-h", argv[i]) || !strcmp ("--help", argv[i]))
|
||||
{
|
||||
print_help (argv[0]);
|
||||
return JERRY_STANDALONE_EXIT_CODE_OK;
|
||||
}
|
||||
else if (!strcmp ("--mem-stats", argv[i]))
|
||||
{
|
||||
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
|
||||
flags |= JERRY_INIT_MEM_STATS;
|
||||
}
|
||||
else if (!strcmp ("--mem-stats-separate", argv[i]))
|
||||
{
|
||||
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
|
||||
flags |= JERRY_INIT_MEM_STATS_SEPARATE;
|
||||
}
|
||||
else if (!strcmp ("--show-opcodes", argv[i]))
|
||||
{
|
||||
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
|
||||
flags |= JERRY_INIT_SHOW_OPCODES | JERRY_INIT_SHOW_REGEXP_OPCODES;
|
||||
}
|
||||
else if (!strcmp ("--log-level", argv[i]))
|
||||
{
|
||||
if (++i < argc && strlen (argv[i]) == 1 && argv[i][0] >='0' && argv[i][0] <= '3')
|
||||
{
|
||||
jerry_log_level = argv[i][0] - '0';
|
||||
}
|
||||
else
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: wrong format or invalid argument\n");
|
||||
return JERRY_STANDALONE_EXIT_CODE_FAIL;
|
||||
}
|
||||
}
|
||||
else if (!strcmp ("--start-debug-server", argv[i]))
|
||||
{
|
||||
start_debug_server = true;
|
||||
}
|
||||
else if (!strcmp ("--debug-server-port", argv[i]))
|
||||
{
|
||||
if (++i < argc)
|
||||
{
|
||||
char *endptr;
|
||||
debug_port = (uint16_t) strtol (argv[i], &endptr, 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: wrong format or invalid argument\n");
|
||||
return JERRY_STANDALONE_EXIT_CODE_FAIL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
file_names[files_counter++] = argv[i];
|
||||
}
|
||||
}
|
||||
|
||||
jerry_init (flags);
|
||||
|
||||
if (start_debug_server)
|
||||
{
|
||||
jerryx_debugger_after_connect (jerryx_debugger_tcp_create (debug_port)
|
||||
&& jerryx_debugger_ws_create ());
|
||||
}
|
||||
|
||||
register_js_function ("assert", jerryx_handler_assert);
|
||||
register_js_function ("gc", jerryx_handler_gc);
|
||||
register_js_function ("print", jerryx_handler_print);
|
||||
|
||||
jerry_value_t ret_value = jerry_create_undefined ();
|
||||
|
||||
if (files_counter == 0)
|
||||
{
|
||||
printf ("No input files, running a hello world demo:\n");
|
||||
const jerry_char_t script[] = "var str = 'Hello World'; print(str + ' from JerryScript')";
|
||||
|
||||
ret_value = jerry_parse (NULL, 0, script, sizeof (script) - 1, JERRY_PARSE_NO_OPTS);
|
||||
|
||||
if (!jerry_value_is_error (ret_value))
|
||||
{
|
||||
ret_value = jerry_run (ret_value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = 0; i < files_counter; i++)
|
||||
{
|
||||
size_t source_size;
|
||||
const jerry_char_t *source_p = read_file (file_names[i], &source_size);
|
||||
|
||||
if (source_p == NULL)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Source file load error\n");
|
||||
return JERRY_STANDALONE_EXIT_CODE_FAIL;
|
||||
}
|
||||
|
||||
ret_value = jerry_parse ((jerry_char_t *) file_names[i],
|
||||
strlen (file_names[i]),
|
||||
source_p,
|
||||
source_size,
|
||||
JERRY_PARSE_NO_OPTS);
|
||||
free ((void*) source_p);
|
||||
|
||||
if (!jerry_value_is_error (ret_value))
|
||||
{
|
||||
jerry_value_t func_val = ret_value;
|
||||
ret_value = jerry_run (func_val);
|
||||
jerry_release_value (func_val);
|
||||
}
|
||||
|
||||
if (jerry_value_is_error (ret_value))
|
||||
{
|
||||
print_unhandled_exception (ret_value);
|
||||
break;
|
||||
}
|
||||
|
||||
jerry_release_value (ret_value);
|
||||
ret_value = jerry_create_undefined ();
|
||||
}
|
||||
}
|
||||
|
||||
int ret_code = JERRY_STANDALONE_EXIT_CODE_OK;
|
||||
|
||||
if (jerry_value_is_error (ret_value))
|
||||
{
|
||||
ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL;
|
||||
}
|
||||
|
||||
jerry_release_value (ret_value);
|
||||
jerry_cleanup ();
|
||||
|
||||
return ret_code;
|
||||
} /* jerry_cmd_main */
|
||||
|
||||
/**
|
||||
* Run JerryScript and print its return value.
|
||||
*/
|
||||
static int
|
||||
jerry(int argc, char *argv[])
|
||||
{
|
||||
int ret_code = jerry_cmd_main(argc, argv);
|
||||
|
||||
#ifdef CONFIG_DEBUG_VERBOSE
|
||||
jerry_port_log(JERRY_LOG_LEVEL_DEBUG, "JerryScript result: %d\n", ret_code);
|
||||
#endif
|
||||
|
||||
return ret_code;
|
||||
} /* jerry */
|
||||
|
||||
/**
|
||||
* Aborts the program.
|
||||
*/
|
||||
void jerry_port_fatal (jerry_fatal_code_t code)
|
||||
{
|
||||
exit (1);
|
||||
} /* jerry_port_fatal */
|
||||
|
||||
/**
|
||||
* Provide log message implementation for the engine.
|
||||
*/
|
||||
void
|
||||
jerry_port_log (jerry_log_level_t level, /**< log level */
|
||||
const char *format, /**< format string */
|
||||
...) /**< parameters */
|
||||
{
|
||||
if (level <= jerry_log_level)
|
||||
{
|
||||
va_list args;
|
||||
va_start (args, format);
|
||||
vfprintf (stderr, format, args);
|
||||
va_end (args);
|
||||
}
|
||||
} /* jerry_port_log */
|
||||
|
||||
/**
|
||||
* Dummy function to get the time zone adjustment.
|
||||
*
|
||||
* @return 0
|
||||
*/
|
||||
double
|
||||
jerry_port_get_local_time_zone_adjustment (double unix_ms, bool is_utc)
|
||||
{
|
||||
/* We live in UTC. */
|
||||
return 0;
|
||||
} /* jerry_port_get_local_time_zone_adjustment */
|
||||
|
||||
/**
|
||||
* Dummy function to get the current time.
|
||||
*
|
||||
* @return 0
|
||||
*/
|
||||
double
|
||||
jerry_port_get_current_time (void)
|
||||
{
|
||||
return 0;
|
||||
} /* jerry_port_get_current_time */
|
||||
|
||||
/**
|
||||
* Provide the implementation of jerry_port_print_char.
|
||||
* Uses 'printf' to print a single character to standard output.
|
||||
*/
|
||||
void
|
||||
jerry_port_print_char (char c) /**< the character to print */
|
||||
{
|
||||
printf ("%c", c);
|
||||
} /* jerry_port_print_char */
|
||||
|
||||
/**
|
||||
* Determines the size of the given file.
|
||||
* @return size of the file
|
||||
*/
|
||||
static size_t
|
||||
jerry_port_get_file_size (FILE *file_p) /**< opened file */
|
||||
{
|
||||
fseek (file_p, 0, SEEK_END);
|
||||
long size = ftell (file_p);
|
||||
fseek (file_p, 0, SEEK_SET);
|
||||
|
||||
return (size_t) size;
|
||||
} /* jerry_port_get_file_size */
|
||||
|
||||
/**
|
||||
* Opens file with the given path and reads its source.
|
||||
* @return the source of the file
|
||||
*/
|
||||
uint8_t *
|
||||
jerry_port_read_source (const char *file_name_p, /**< file name */
|
||||
size_t *out_size_p) /**< [out] read bytes */
|
||||
{
|
||||
FILE *file_p = fopen (file_name_p, "rb");
|
||||
|
||||
if (file_p == NULL)
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: failed to open file: %s\n", file_name_p);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t file_size = jerry_port_get_file_size (file_p);
|
||||
uint8_t *buffer_p = (uint8_t *) malloc (file_size);
|
||||
|
||||
if (buffer_p == NULL)
|
||||
{
|
||||
fclose (file_p);
|
||||
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: failed to allocate memory for module");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t bytes_read = fread (buffer_p, 1u, file_size, file_p);
|
||||
|
||||
if (!bytes_read)
|
||||
{
|
||||
fclose (file_p);
|
||||
free (buffer_p);
|
||||
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: failed to read file: %s\n", file_name_p);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
fclose (file_p);
|
||||
*out_size_p = bytes_read;
|
||||
|
||||
return buffer_p;
|
||||
} /* jerry_port_read_source */
|
||||
|
||||
/**
|
||||
* Release the previously opened file's content.
|
||||
*/
|
||||
void
|
||||
jerry_port_release_source (uint8_t *buffer_p) /**< buffer to free */
|
||||
{
|
||||
free (buffer_p);
|
||||
} /* jerry_port_release_source */
|
||||
|
||||
/**
|
||||
* Normalize a file path
|
||||
*
|
||||
* @return length of the path written to the output buffer
|
||||
*/
|
||||
size_t
|
||||
jerry_port_normalize_path (const char *in_path_p, /**< input file path */
|
||||
char *out_buf_p, /**< output buffer */
|
||||
size_t out_buf_size, /**< size of output buffer */
|
||||
char *base_file_p) /**< base file path */
|
||||
{
|
||||
(void) base_file_p;
|
||||
|
||||
size_t len = strlen (in_path_p);
|
||||
if (len + 1 > out_buf_size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Return the original string. */
|
||||
strcpy (out_buf_p, in_path_p);
|
||||
return len;
|
||||
} /* jerry_port_normalize_path */
|
||||
|
||||
/**
|
||||
* Get the module object of a native module.
|
||||
*
|
||||
* @return undefined
|
||||
*/
|
||||
jerry_value_t
|
||||
jerry_port_get_native_module (jerry_value_t name) /**< module specifier */
|
||||
{
|
||||
(void) name;
|
||||
return jerry_create_undefined ();
|
||||
} /* jerry_port_get_native_module */
|
||||
|
||||
/**
|
||||
* Main program.
|
||||
*
|
||||
* @return 0 if success, error code otherwise
|
||||
*/
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
int main (int argc, FAR char *argv[])
|
||||
#else
|
||||
int jerry_main (int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
tash_cmd_install("jerry", jerry, TASH_EXECMD_SYNC);
|
||||
return 0;
|
||||
} /* main */
|
||||
@ -1,63 +0,0 @@
|
||||
/* Copyright JS Foundation and other contributors, http://js.foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
.syntax unified
|
||||
|
||||
.macro func _name
|
||||
.global \_name
|
||||
.type \_name, %function
|
||||
\_name:
|
||||
.endm
|
||||
.macro endfunc _name
|
||||
.size \_name, .-\_name
|
||||
.endm
|
||||
|
||||
/**
|
||||
* setjmp (jmp_buf env)
|
||||
*
|
||||
* See also:
|
||||
* longjmp
|
||||
*
|
||||
* @return 0 - if returns from direct call,
|
||||
* nonzero - if returns after longjmp.
|
||||
*/
|
||||
func setjmp
|
||||
stmia r0!, {r4 - r11, lr}
|
||||
str sp, [r0], #4
|
||||
mov r0, #0
|
||||
bx lr
|
||||
endfunc setjmp
|
||||
|
||||
/**
|
||||
* longjmp (jmp_buf env, int val)
|
||||
*
|
||||
* Note:
|
||||
* if val is not 0, then it would be returned from setjmp,
|
||||
* otherwise - 0 would be returned.
|
||||
*
|
||||
* See also:
|
||||
* setjmp
|
||||
*/
|
||||
func longjmp
|
||||
ldmia r0!, {r4 - r11, lr}
|
||||
ldr sp, [r0]
|
||||
add r0, r0, #4
|
||||
mov r0, r1
|
||||
cmp r0, #0
|
||||
bne 1f
|
||||
mov r0, #1
|
||||
1:
|
||||
bx lr
|
||||
endfunc longjmp
|
||||
@ -1,25 +0,0 @@
|
||||
/* Copyright JS Foundation and other contributors, http://js.foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef SETJMP_H
|
||||
#define SETJMP_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef uint64_t jmp_buf[14];
|
||||
|
||||
int setjmp (jmp_buf env);
|
||||
void longjmp (jmp_buf env, int val);
|
||||
|
||||
#endif /* !SETJMP_H */
|
||||
@ -1,174 +0,0 @@
|
||||
############################################################################
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# This file is based on work under the following copyright and permission
|
||||
# notice:
|
||||
#
|
||||
############################################################################
|
||||
# Copyright 2017 Samsung Electronics All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
# either express or implied. See the License for the specific
|
||||
# language governing permissions and limitations under the License.
|
||||
#
|
||||
############################################################################
|
||||
############################################################################
|
||||
# configs/artik053/tash/Make.defs
|
||||
#
|
||||
# Copyright (C) 2011, 2012-2013 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
ARCH_FAMILY = $(patsubst "%",%,$(CONFIG_ARCH_FAMILY))
|
||||
include ${TOPDIR}/arch/$(CONFIG_ARCH)/src/$(ARCH_FAMILY)/Toolchain.defs
|
||||
|
||||
LDSCRIPT = flash.ld
|
||||
|
||||
EXTRA_LIBS += -ljerry-core -ljerry-libm -ljerry-ext
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
MKDEP = $(TOPDIR)/tools/mkwindeps.sh
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/../framework/include}" -isystem "${shell cygpath -w $(TOPDIR)/../external/include}"
|
||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/../external/include}"
|
||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/../build/configs/artik053/scripts/$(LDSCRIPT)}"
|
||||
else
|
||||
# Linux/Cygwin-native toolchain
|
||||
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/../framework/include -isystem $(TOPDIR)/../external/include
|
||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/../external/include
|
||||
ARCHSCRIPT = -T$(TOPDIR)/../build/configs/artik053/scripts/$(LDSCRIPT)
|
||||
|
||||
endif
|
||||
|
||||
CC = $(CROSSDEV)gcc
|
||||
CXX = $(CROSSDEV)g++
|
||||
CPP = $(CROSSDEV)gcc -E
|
||||
LD = $(CROSSDEV)ld
|
||||
AR = $(CROSSDEV)ar rcs
|
||||
NM = $(CROSSDEV)nm
|
||||
OBJCOPY = $(CROSSDEV)objcopy
|
||||
OBJDUMP = $(CROSSDEV)objdump
|
||||
|
||||
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
||||
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
||||
ARCHCCMINOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f2}
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION = -g
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_FRAME_POINTER),y)
|
||||
ARCHOPTIMIZATION += -fno-omit-frame-pointer -mapcs -mno-sched-prolog
|
||||
endif
|
||||
|
||||
ARCHCFLAGS = -fno-builtin -mcpu=cortex-r4 -mfpu=vfpv3
|
||||
ARCHCXXFLAGS = -fno-builtin -fexceptions -mcpu=cortex-r4 -mfpu=vfpv3
|
||||
ifeq ($(QUICKBUILD),y)
|
||||
ARCHWARNINGS = -Wall -Werror -Wstrict-prototypes -Wshadow -Wundef -Wno-implicit-function-declaration -Wno-unused-function -Wno-unused-but-set-variable
|
||||
ARCHWARNINGSXX = -Wall -Werror -Wshadow -Wundef
|
||||
else
|
||||
ARCHWARNINGS = -Wall -Werror -Wstrict-prototypes -Wshadow -Wundef -Wno-implicit-function-declaration -Wno-unused-function -Wno-unused-but-set-variable
|
||||
ARCHWARNINGSXX = -Wall -Werror -Wshadow -Wundef
|
||||
# only version 4.9 supports color diagnostics
|
||||
ifeq "$(ARCHMAJOR)" "4"
|
||||
ifeq "$(ARCHMINOR)" "9"
|
||||
ARCHWARNINGS += -fdiagnostics-color=auto
|
||||
ARCHWARNINGSCC += -fdiagnostics-color=auto
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
ARCHDEFINES =
|
||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
||||
|
||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe -ffunction-sections -fdata-sections
|
||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
||||
|
||||
ASMEXT = .S
|
||||
OBJEXT = .o
|
||||
LIBEXT = .a
|
||||
EXEEXT =
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
LDFLAGS += -g
|
||||
endif
|
||||
|
||||
LDFLAGS += --gc-sections
|
||||
|
||||
HOSTCC = gcc
|
||||
HOSTINCLUDES = -I.
|
||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
||||
HOSTLDFLAGS =
|
||||
|
||||
define DOWNLOAD
|
||||
$(TOPDIR)/../build/configs/artik05x/artik05x_download.sh --board=artik053 $(1) $(2) $(3) $(4) $(5) $(6)
|
||||
endef
|
||||
|
||||
define OTA_IMG
|
||||
$(TOPDIR)/../build/configs/artik05x/artik05x_ota.sh
|
||||
endef
|
||||
|
||||
define MAKE_BOARD_SPECIFIC_BIN
|
||||
$(TOPDIR)/../build/configs/artik05x/artik05x_make_bin.sh --bin $(1) --ext $(2)
|
||||
endef
|
||||
@ -1,874 +0,0 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# TinyAra Configuration
|
||||
#
|
||||
|
||||
#
|
||||
# Build Setup
|
||||
#
|
||||
# CONFIG_EXPERIMENTAL is not set
|
||||
# CONFIG_DEFAULT_SMALL is not set
|
||||
CONFIG_HOST_LINUX=y
|
||||
# CONFIG_HOST_OSX is not set
|
||||
# CONFIG_HOST_WINDOWS is not set
|
||||
# CONFIG_HOST_OTHER is not set
|
||||
# CONFIG_WINDOWS_NATIVE is not set
|
||||
|
||||
#
|
||||
# Build Configuration
|
||||
#
|
||||
CONFIG_APPS_DIR="../apps"
|
||||
CONFIG_FRAMEWORK_DIR="../framework"
|
||||
CONFIG_TOOLS_DIR="../tools"
|
||||
CONFIG_BUILD_FLAT=y
|
||||
# CONFIG_BUILD_PROTECTED is not set
|
||||
# CONFIG_BUILD_2PASS is not set
|
||||
|
||||
#
|
||||
# Binary Output Formats
|
||||
#
|
||||
# CONFIG_INTELHEX_BINARY is not set
|
||||
# CONFIG_MOTOROLA_SREC is not set
|
||||
CONFIG_RAW_BINARY=y
|
||||
# CONFIG_UBOOT_UIMAGE is not set
|
||||
# CONFIG_DOWNLOAD_IMAGE is not set
|
||||
# CONFIG_SMARTFS_IMAGE is not set
|
||||
|
||||
#
|
||||
# Customize Header Files
|
||||
#
|
||||
# CONFIG_ARCH_STDINT_H is not set
|
||||
# CONFIG_ARCH_STDBOOL_H is not set
|
||||
# CONFIG_ARCH_MATH_H is not set
|
||||
# CONFIG_ARCH_FLOAT_H is not set
|
||||
# CONFIG_ARCH_STDARG_H is not set
|
||||
CONFIG_ARCH_HAVE_CUSTOMOPT=y
|
||||
# CONFIG_DEBUG_NOOPT is not set
|
||||
# CONFIG_DEBUG_CUSTOMOPT is not set
|
||||
CONFIG_DEBUG_FULLOPT=y
|
||||
|
||||
#
|
||||
# Hardware Configuration
|
||||
#
|
||||
|
||||
#
|
||||
# Chip Selection
|
||||
#
|
||||
CONFIG_ARCH_ARM=y
|
||||
CONFIG_ARCH="arm"
|
||||
# CONFIG_ARCH_CHIP_LM is not set
|
||||
CONFIG_ARCH_CHIP_S5J=y
|
||||
# CONFIG_ARCH_CHIP_BCM4390X is not set
|
||||
CONFIG_ARCH_CHIP="s5j"
|
||||
|
||||
#
|
||||
# ARM Options
|
||||
#
|
||||
# CONFIG_ARCH_CORTEXM3 is not set
|
||||
# CONFIG_ARCH_CORTEXM4 is not set
|
||||
CONFIG_ARCH_CORTEXR4=y
|
||||
CONFIG_ARCH_FAMILY="armv7-r"
|
||||
# CONFIG_ARCH_HAVE_FPU is not set
|
||||
CONFIG_ARMV7M_MPU=y
|
||||
CONFIG_ARMV7M_MPU_NREGIONS=12
|
||||
|
||||
#
|
||||
# Exception stack options
|
||||
#
|
||||
CONFIG_ARCH_HAVE_DABORTSTACK=y
|
||||
CONFIG_ARCH_DABORTSTACK=0
|
||||
|
||||
#
|
||||
# ARMv7-R Configuration Options
|
||||
#
|
||||
CONFIG_ARMV7R_HAVE_GICv2=y
|
||||
CONFIG_ARMV7R_MEMINIT=y
|
||||
CONFIG_ARMV7R_ICACHE=y
|
||||
CONFIG_ARMV7R_DCACHE=y
|
||||
# CONFIG_ARMV7R_DCACHE_WRITETHROUGH is not set
|
||||
# CONFIG_ARMV7R_HAVE_L2CC is not set
|
||||
# CONFIG_ARMV7R_HAVE_L2CC_PL310 is not set
|
||||
# CONFIG_ARMV7R_TOOLCHAIN_BUILDROOT is not set
|
||||
# CONFIG_ARMV7R_TOOLCHAIN_CODESOURCERYL is not set
|
||||
CONFIG_ARMV7R_TOOLCHAIN_GNU_EABIL=y
|
||||
# CONFIG_ARMV7R_TOOLCHAIN_GNU_OABI is not set
|
||||
# CONFIG_ARMV7R_HAVE_DECODEFIQ is not set
|
||||
|
||||
#
|
||||
# S5J Configuration Options
|
||||
#
|
||||
CONFIG_ARCH_CHIP_S5JT200=y
|
||||
CONFIG_S5J_S5JT200=y
|
||||
|
||||
#
|
||||
# S5J Peripheral Support
|
||||
#
|
||||
CONFIG_S5J_HAVE_ADC=y
|
||||
CONFIG_S5J_HAVE_DMA=y
|
||||
CONFIG_S5J_HAVE_I2C=y
|
||||
CONFIG_S5J_HAVE_I2S=y
|
||||
CONFIG_S5J_HAVE_MCT=y
|
||||
CONFIG_S5J_HAVE_PWM0=y
|
||||
CONFIG_S5J_HAVE_PWM1=y
|
||||
CONFIG_S5J_HAVE_PWM2=y
|
||||
CONFIG_S5J_HAVE_PWM3=y
|
||||
CONFIG_S5J_HAVE_PWM4=y
|
||||
CONFIG_S5J_HAVE_PWM5=y
|
||||
CONFIG_S5J_HAVE_RTC=y
|
||||
CONFIG_S5J_HAVE_SFLASH=y
|
||||
CONFIG_S5J_HAVE_SPI=y
|
||||
CONFIG_S5J_HAVE_SSS=y
|
||||
CONFIG_S5J_HAVE_UART0=y
|
||||
CONFIG_S5J_HAVE_UART1=y
|
||||
CONFIG_S5J_HAVE_UART2=y
|
||||
CONFIG_S5J_HAVE_UART3=y
|
||||
CONFIG_S5J_HAVE_UART4=y
|
||||
CONFIG_S5J_HAVE_WATCHDOG=y
|
||||
# CONFIG_S5J_ADC is not set
|
||||
# CONFIG_S5J_DMA is not set
|
||||
# CONFIG_S5J_I2C is not set
|
||||
# CONFIG_S5J_I2S is not set
|
||||
CONFIG_S5J_MCT=y
|
||||
CONFIG_S5J_TIMER0=y
|
||||
# CONFIG_S5J_TIMER1 is not set
|
||||
# CONFIG_S5J_TIMER2 is not set
|
||||
# CONFIG_S5J_TIMER3 is not set
|
||||
# CONFIG_S5J_UART_FLOWCONTROL is not set
|
||||
CONFIG_S5J_UART0=y
|
||||
CONFIG_S5J_UART1=y
|
||||
CONFIG_S5J_UART2=y
|
||||
CONFIG_S5J_UART3=y
|
||||
# CONFIG_S5J_UART3_FLOWCONTROL is not set
|
||||
CONFIG_S5J_UART4=y
|
||||
# CONFIG_S5J_PWM is not set
|
||||
# CONFIG_S5J_PWM0 is not set
|
||||
# CONFIG_S5J_PWM1 is not set
|
||||
# CONFIG_S5J_PWM2 is not set
|
||||
# CONFIG_S5J_PWM3 is not set
|
||||
# CONFIG_S5J_PWM4 is not set
|
||||
# CONFIG_S5J_PWM5 is not set
|
||||
# CONFIG_S5J_SSS is not set
|
||||
CONFIG_S5J_SPI=y
|
||||
# CONFIG_S5J_WATCHDOG is not set
|
||||
CONFIG_S5J_SFLASH=y
|
||||
# CONFIG_S5J_SENSOR_PPD42NS is not set
|
||||
|
||||
#
|
||||
# Architecture Options
|
||||
#
|
||||
# CONFIG_ARCH_NOINTC is not set
|
||||
# CONFIG_ARCH_VECNOTIRQ is not set
|
||||
# CONFIG_ARCH_DMA is not set
|
||||
# CONFIG_ARCH_HAVE_IRQPRIO is not set
|
||||
# CONFIG_ARCH_L2CACHE is not set
|
||||
# CONFIG_ARCH_HAVE_COHERENT_DCACHE is not set
|
||||
# CONFIG_ARCH_HAVE_ADDRENV is not set
|
||||
# CONFIG_ARCH_NEED_ADDRENV_MAPPING is not set
|
||||
CONFIG_ARCH_HAVE_VFORK=y
|
||||
# CONFIG_ARCH_HAVE_MMU is not set
|
||||
CONFIG_ARCH_HAVE_MPU=y
|
||||
# CONFIG_ARCH_NAND_HWECC is not set
|
||||
# CONFIG_ARCH_HAVE_EXTCLK is not set
|
||||
# CONFIG_ARCH_HAVE_POWEROFF is not set
|
||||
CONFIG_ARCH_HAVE_RESET=y
|
||||
CONFIG_ARCH_USE_MPU=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
# CONFIG_DEBUG_DISPLAY_SYMBOL is not set
|
||||
# CONFIG_ENDIAN_BIG is not set
|
||||
# CONFIG_ARCH_IDLE_CUSTOM is not set
|
||||
# CONFIG_ARCH_HAVE_RAMFUNCS is not set
|
||||
# CONFIG_ARCH_HAVE_RAMVECTORS is not set
|
||||
|
||||
#
|
||||
# Board Settings
|
||||
#
|
||||
CONFIG_BOARD_LOOPSPERMSEC=29100
|
||||
# CONFIG_ARCH_CALIBRATION is not set
|
||||
|
||||
#
|
||||
# Interrupt options
|
||||
#
|
||||
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
|
||||
CONFIG_ARCH_INTERRUPTSTACK=0
|
||||
# CONFIG_ARCH_HAVE_HIPRI_INTERRUPT is not set
|
||||
|
||||
#
|
||||
# Boot options
|
||||
#
|
||||
# CONFIG_BOOT_RUNFROMEXTSRAM is not set
|
||||
CONFIG_BOOT_RUNFROMFLASH=y
|
||||
# CONFIG_BOOT_RUNFROMISRAM is not set
|
||||
# CONFIG_BOOT_RUNFROMSDRAM is not set
|
||||
# CONFIG_BOOT_COPYTORAM is not set
|
||||
|
||||
#
|
||||
# Boot Memory Configuration
|
||||
#
|
||||
CONFIG_RAM_START=0x02023800
|
||||
CONFIG_RAM_SIZE=968704
|
||||
# CONFIG_DDR is not set
|
||||
# CONFIG_ARCH_HAVE_SDRAM is not set
|
||||
|
||||
#
|
||||
# Board Selection
|
||||
#
|
||||
CONFIG_ARCH_BOARD_ARTIK053=y
|
||||
# CONFIG_ARCH_BOARD_ARTIK053S is not set
|
||||
# CONFIG_ARCH_BOARD_ARTIK055S is not set
|
||||
# CONFIG_ARCH_BOARD_SIDK_S5JT200 is not set
|
||||
CONFIG_ARCH_BOARD_ARTIK05X_FAMILY=y
|
||||
CONFIG_ARCH_BOARD="artik05x"
|
||||
|
||||
#
|
||||
# Common Board Options
|
||||
#
|
||||
# CONFIG_BOARD_CRASHDUMP is not set
|
||||
# CONFIG_BOARD_ASSERT_AUTORESET is not set
|
||||
CONFIG_LIB_BOARDCTL=y
|
||||
CONFIG_BOARDCTL_RESET=y
|
||||
# CONFIG_BOARDCTL_UNIQUEID is not set
|
||||
# CONFIG_BOARD_FOTA_SUPPORT is not set
|
||||
|
||||
#
|
||||
# Board-Specific Options
|
||||
#
|
||||
CONFIG_ARTIK05X_BOOT_FAILURE_DETECTION=y
|
||||
CONFIG_ARTIK05X_BOOT_COUNTS_ADDR=0x80090810
|
||||
CONFIG_ARTIK05X_FLASH_CAPACITY=8388608
|
||||
CONFIG_ARTIK05X_FLASH_PAGE_SIZE=4096
|
||||
CONFIG_ARTIK05X_FLASH_PART=y
|
||||
CONFIG_ARTIK05X_FLASH_MINOR=0
|
||||
CONFIG_ARTIK05X_FLASH_PART_LIST="16,48,192,32,512,2400,1536,1536,200,1200,8,512,"
|
||||
CONFIG_ARTIK05X_FLASH_PART_TYPE="none,ftl,none,none,none,none,none,ftl,smartfs,romfs,config,none,"
|
||||
CONFIG_ARTIK05X_FLASH_PART_NAME="bl1,sssro,bl2,sssfw,wlanfw,os,factory,ota,user,rom,nvram,sssrw,"
|
||||
CONFIG_ARTIK05X_AUTOMOUNT=y
|
||||
CONFIG_ARTIK05X_AUTOMOUNT_USERFS=y
|
||||
CONFIG_ARTIK05X_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p8"
|
||||
CONFIG_ARTIK05X_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt"
|
||||
# CONFIG_ARTIK05X_AUTOMOUNT_SSSRW is not set
|
||||
CONFIG_ARTIK05X_AUTOMOUNT_ROMFS=y
|
||||
CONFIG_ARTIK05X_AUTOMOUNT_ROMFS_DEVNAME="/dev/mtdblock9"
|
||||
CONFIG_ARTIK05X_AUTOMOUNT_ROMFS_MOUNTPOINT="/rom"
|
||||
|
||||
#
|
||||
# Kernel Features
|
||||
#
|
||||
CONFIG_DISABLE_OS_API=y
|
||||
# CONFIG_DISABLE_POSIX_TIMERS is not set
|
||||
# CONFIG_DISABLE_PTHREAD is not set
|
||||
# CONFIG_DISABLE_SIGNALS is not set
|
||||
# CONFIG_DISABLE_MQUEUE is not set
|
||||
# CONFIG_DISABLE_ENVIRON is not set
|
||||
|
||||
#
|
||||
# Clocks and Timers
|
||||
#
|
||||
CONFIG_ARCH_HAVE_TICKLESS=y
|
||||
# CONFIG_SCHED_TICKLESS is not set
|
||||
CONFIG_USEC_PER_TICK=9979
|
||||
CONFIG_SYSTEM_TIME64=y
|
||||
CONFIG_CLOCK_MONOTONIC=y
|
||||
# CONFIG_JULIAN_TIME is not set
|
||||
CONFIG_MAX_WDOGPARMS=4
|
||||
CONFIG_PREALLOC_WDOGS=32
|
||||
CONFIG_WDOG_INTRESERVE=4
|
||||
CONFIG_PREALLOC_TIMERS=8
|
||||
|
||||
#
|
||||
# Tasks and Scheduling
|
||||
#
|
||||
CONFIG_INIT_ENTRYPOINT=y
|
||||
CONFIG_RR_INTERVAL=100
|
||||
CONFIG_TASK_NAME_SIZE=31
|
||||
CONFIG_MAX_TASKS=32
|
||||
CONFIG_SCHED_HAVE_PARENT=y
|
||||
# CONFIG_SCHED_CHILD_STATUS is not set
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
|
||||
#
|
||||
# Pthread Options
|
||||
#
|
||||
CONFIG_PTHREAD_MUTEX_TYPES=y
|
||||
# CONFIG_PTHREAD_MUTEX_ROBUST is not set
|
||||
CONFIG_PTHREAD_MUTEX_UNSAFE=y
|
||||
# CONFIG_PTHREAD_MUTEX_BOTH is not set
|
||||
CONFIG_NPTHREAD_KEYS=4
|
||||
CONFIG_NPTHREAD_DESTRUCTOR_ITERATIONS=4
|
||||
# CONFIG_PTHREAD_CLEANUP is not set
|
||||
# CONFIG_CANCELLATION_POINTS is not set
|
||||
|
||||
#
|
||||
# Performance Monitoring
|
||||
#
|
||||
# CONFIG_SCHED_CPULOAD is not set
|
||||
|
||||
#
|
||||
# Latency optimization
|
||||
#
|
||||
# CONFIG_SCHED_YIELD_OPTIMIZATION is not set
|
||||
|
||||
#
|
||||
# Files and I/O
|
||||
#
|
||||
CONFIG_DEV_CONSOLE=y
|
||||
# CONFIG_FDCLONE_DISABLE is not set
|
||||
# CONFIG_FDCLONE_STDIO is not set
|
||||
# CONFIG_SDCLONE_DISABLE is not set
|
||||
CONFIG_NFILE_DESCRIPTORS=16
|
||||
CONFIG_NFILE_STREAMS=16
|
||||
CONFIG_NAME_MAX=32
|
||||
# CONFIG_PRIORITY_INHERITANCE is not set
|
||||
|
||||
#
|
||||
# RTOS hooks
|
||||
#
|
||||
CONFIG_BOARD_INITIALIZE=y
|
||||
# CONFIG_BOARD_INITTHREAD is not set
|
||||
# CONFIG_SCHED_STARTHOOK is not set
|
||||
CONFIG_SCHED_ATEXIT=y
|
||||
CONFIG_SCHED_ONEXIT=y
|
||||
|
||||
#
|
||||
# Signal Numbers
|
||||
#
|
||||
CONFIG_SIG_SIGUSR1=1
|
||||
CONFIG_SIG_SIGUSR2=2
|
||||
CONFIG_SIG_SIGALARM=3
|
||||
CONFIG_SIG_SIGCHLD=4
|
||||
CONFIG_SIG_SIGCONDTIMEDOUT=16
|
||||
CONFIG_SIG_SIGWORK=17
|
||||
|
||||
#
|
||||
# POSIX Message Queue Options
|
||||
#
|
||||
CONFIG_PREALLOC_MQ_MSGS=4
|
||||
CONFIG_MQ_MAXMSGSIZE=600
|
||||
|
||||
#
|
||||
# Work Queue Support
|
||||
#
|
||||
CONFIG_SCHED_WORKQUEUE=y
|
||||
CONFIG_SCHED_WORKQUEUE_SORTING=y
|
||||
CONFIG_SCHED_HPWORK=y
|
||||
CONFIG_SCHED_HPWORKPRIORITY=224
|
||||
CONFIG_SCHED_HPWORKPERIOD=50000
|
||||
CONFIG_SCHED_HPWORKSTACKSIZE=2048
|
||||
CONFIG_SCHED_LPWORK=y
|
||||
CONFIG_SCHED_LPNTHREADS=1
|
||||
CONFIG_SCHED_LPWORKPRIORITY=176
|
||||
CONFIG_SCHED_LPWORKPERIOD=50000
|
||||
CONFIG_SCHED_LPWORKSTACKSIZE=2048
|
||||
|
||||
#
|
||||
# Stack size information
|
||||
#
|
||||
CONFIG_IDLETHREAD_STACKSIZE=1024
|
||||
CONFIG_USERMAIN_STACKSIZE=2048
|
||||
# CONFIG_MPU_STACKGAURD is not set
|
||||
CONFIG_PTHREAD_STACK_MIN=256
|
||||
CONFIG_PTHREAD_STACK_DEFAULT=2048
|
||||
|
||||
#
|
||||
# Device Drivers
|
||||
#
|
||||
# CONFIG_DISABLE_POLL is not set
|
||||
CONFIG_DEV_NULL=y
|
||||
CONFIG_DEV_ZERO=y
|
||||
# CONFIG_DRVR_WRITEBUFFER is not set
|
||||
# CONFIG_DRVR_READAHEAD is not set
|
||||
# CONFIG_CAN is not set
|
||||
# CONFIG_ARCH_HAVE_PWM_PULSECOUNT is not set
|
||||
# CONFIG_ARCH_HAVE_PWM_MULTICHAN is not set
|
||||
# CONFIG_PWM is not set
|
||||
# CONFIG_ARCH_HAVE_I2CRESET is not set
|
||||
# CONFIG_I2C is not set
|
||||
# CONFIG_SPI is not set
|
||||
# CONFIG_GPIO is not set
|
||||
# CONFIG_I2S is not set
|
||||
# CONFIG_AUDIO_DEVICES is not set
|
||||
CONFIG_BCH=y
|
||||
CONFIG_RTC=y
|
||||
CONFIG_RTC_DATETIME=y
|
||||
# CONFIG_RTC_ALARM is not set
|
||||
CONFIG_RTC_DRIVER=y
|
||||
# CONFIG_RTC_IOCTL is not set
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_WATCHDOG_DEVPATH="/dev/watchdog0"
|
||||
# CONFIG_TIMER is not set
|
||||
# CONFIG_ANALOG is not set
|
||||
# CONFIG_PIPES is not set
|
||||
CONFIG_POWER=y
|
||||
# CONFIG_BATTERY_CHARGER is not set
|
||||
# CONFIG_BATTERY_GAUGE is not set
|
||||
CONFIG_SERIAL=y
|
||||
# CONFIG_DEV_LOWCONSOLE is not set
|
||||
# CONFIG_16550_UART is not set
|
||||
# CONFIG_ARCH_HAVE_UART is not set
|
||||
CONFIG_ARCH_HAVE_UART0=y
|
||||
CONFIG_ARCH_HAVE_UART1=y
|
||||
CONFIG_ARCH_HAVE_UART2=y
|
||||
CONFIG_ARCH_HAVE_UART3=y
|
||||
CONFIG_ARCH_HAVE_UART4=y
|
||||
# CONFIG_ARCH_HAVE_UART5 is not set
|
||||
# CONFIG_ARCH_HAVE_UART6 is not set
|
||||
# CONFIG_ARCH_HAVE_UART7 is not set
|
||||
# CONFIG_ARCH_HAVE_UART8 is not set
|
||||
# CONFIG_ARCH_HAVE_SCI0 is not set
|
||||
# CONFIG_ARCH_HAVE_SCI1 is not set
|
||||
# CONFIG_ARCH_HAVE_USART0 is not set
|
||||
# CONFIG_ARCH_HAVE_USART1 is not set
|
||||
# CONFIG_ARCH_HAVE_USART2 is not set
|
||||
# CONFIG_ARCH_HAVE_USART3 is not set
|
||||
# CONFIG_ARCH_HAVE_USART4 is not set
|
||||
# CONFIG_ARCH_HAVE_USART5 is not set
|
||||
# CONFIG_ARCH_HAVE_USART6 is not set
|
||||
# CONFIG_ARCH_HAVE_USART7 is not set
|
||||
# CONFIG_ARCH_HAVE_USART8 is not set
|
||||
# CONFIG_ARCH_HAVE_OTHER_UART is not set
|
||||
|
||||
#
|
||||
# USART Configuration
|
||||
#
|
||||
CONFIG_MCU_SERIAL=y
|
||||
CONFIG_STANDARD_SERIAL=y
|
||||
CONFIG_SERIAL_NPOLLWAITERS=2
|
||||
# CONFIG_SERIAL_IFLOWCONTROL is not set
|
||||
# CONFIG_SERIAL_OFLOWCONTROL is not set
|
||||
CONFIG_ARCH_HAVE_SERIAL_TERMIOS=y
|
||||
CONFIG_SERIAL_TERMIOS=y
|
||||
# CONFIG_UART0_SERIAL_CONSOLE is not set
|
||||
# CONFIG_UART1_SERIAL_CONSOLE is not set
|
||||
# CONFIG_UART2_SERIAL_CONSOLE is not set
|
||||
# CONFIG_UART3_SERIAL_CONSOLE is not set
|
||||
CONFIG_UART4_SERIAL_CONSOLE=y
|
||||
# CONFIG_OTHER_SERIAL_CONSOLE is not set
|
||||
# CONFIG_NO_SERIAL_CONSOLE is not set
|
||||
|
||||
#
|
||||
# UART0 Configuration
|
||||
#
|
||||
CONFIG_UART0_RXBUFSIZE=64
|
||||
CONFIG_UART0_TXBUFSIZE=64
|
||||
CONFIG_UART0_BAUD=115200
|
||||
CONFIG_UART0_BITS=8
|
||||
CONFIG_UART0_PARITY=0
|
||||
CONFIG_UART0_2STOP=0
|
||||
# CONFIG_UART0_IFLOWCONTROL is not set
|
||||
# CONFIG_UART0_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# UART1 Configuration
|
||||
#
|
||||
CONFIG_UART1_RXBUFSIZE=256
|
||||
CONFIG_UART1_TXBUFSIZE=256
|
||||
CONFIG_UART1_BAUD=115200
|
||||
CONFIG_UART1_BITS=8
|
||||
CONFIG_UART1_PARITY=0
|
||||
CONFIG_UART1_2STOP=0
|
||||
# CONFIG_UART1_IFLOWCONTROL is not set
|
||||
# CONFIG_UART1_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# UART2 Configuration
|
||||
#
|
||||
CONFIG_UART2_RXBUFSIZE=256
|
||||
CONFIG_UART2_TXBUFSIZE=256
|
||||
CONFIG_UART2_BAUD=115200
|
||||
CONFIG_UART2_BITS=8
|
||||
CONFIG_UART2_PARITY=0
|
||||
CONFIG_UART2_2STOP=0
|
||||
# CONFIG_UART2_IFLOWCONTROL is not set
|
||||
# CONFIG_UART2_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# UART3 Configuration
|
||||
#
|
||||
CONFIG_UART3_RXBUFSIZE=256
|
||||
CONFIG_UART3_TXBUFSIZE=256
|
||||
CONFIG_UART3_BAUD=115200
|
||||
CONFIG_UART3_BITS=8
|
||||
CONFIG_UART3_PARITY=0
|
||||
CONFIG_UART3_2STOP=0
|
||||
# CONFIG_UART3_IFLOWCONTROL is not set
|
||||
# CONFIG_UART3_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# UART4 Configuration
|
||||
#
|
||||
CONFIG_UART4_RXBUFSIZE=256
|
||||
CONFIG_UART4_TXBUFSIZE=256
|
||||
CONFIG_UART4_BAUD=115200
|
||||
CONFIG_UART4_BITS=8
|
||||
CONFIG_UART4_PARITY=0
|
||||
CONFIG_UART4_2STOP=0
|
||||
# CONFIG_UART4_IFLOWCONTROL is not set
|
||||
# CONFIG_UART4_OFLOWCONTROL is not set
|
||||
# CONFIG_SENSOR is not set
|
||||
# CONFIG_USBDEV is not set
|
||||
# CONFIG_FOTA_DRIVER is not set
|
||||
|
||||
#
|
||||
# System Logging
|
||||
#
|
||||
# CONFIG_RAMLOG is not set
|
||||
# CONFIG_SYSLOG_CONSOLE is not set
|
||||
|
||||
#
|
||||
# T-trace
|
||||
#
|
||||
# CONFIG_TTRACE is not set
|
||||
|
||||
#
|
||||
# Wireless Device Options
|
||||
#
|
||||
# CONFIG_DRIVERS_WIRELESS is not set
|
||||
|
||||
#
|
||||
# Networking Support
|
||||
#
|
||||
# CONFIG_ARCH_HAVE_NET is not set
|
||||
# CONFIG_ARCH_HAVE_PHY is not set
|
||||
# CONFIG_NET is not set
|
||||
|
||||
#
|
||||
# Audio Support
|
||||
#
|
||||
# CONFIG_AUDIO is not set
|
||||
|
||||
#
|
||||
# Media Support
|
||||
#
|
||||
|
||||
#
|
||||
# File Systems
|
||||
#
|
||||
# CONFIG_DISABLE_MOUNTPOINT is not set
|
||||
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set
|
||||
CONFIG_FS_READABLE=y
|
||||
CONFIG_FS_WRITABLE=y
|
||||
# CONFIG_FS_AIO is not set
|
||||
# CONFIG_FS_NAMED_SEMAPHORES is not set
|
||||
CONFIG_FS_MQUEUE_MPATH="/var/mqueue"
|
||||
CONFIG_FS_SMARTFS=y
|
||||
|
||||
#
|
||||
# SMARTFS options
|
||||
#
|
||||
CONFIG_SMARTFS_ERASEDSTATE=0xff
|
||||
CONFIG_SMARTFS_MAXNAMLEN=32
|
||||
# CONFIG_SMARTFS_MULTI_ROOT_DIRS is not set
|
||||
CONFIG_SMARTFS_ALIGNED_ACCESS=y
|
||||
# CONFIG_SMARTFS_BAD_SECTOR is not set
|
||||
# CONFIG_SMARTFS_DYNAMIC_HEADER is not set
|
||||
# CONFIG_SMARTFS_JOURNALING is not set
|
||||
# CONFIG_SMARTFS_SECTOR_RECOVERY is not set
|
||||
CONFIG_FS_PROCFS=y
|
||||
# CONFIG_FS_AUTOMOUNT_PROCFS is not set
|
||||
|
||||
#
|
||||
# Exclude individual procfs entries
|
||||
#
|
||||
# CONFIG_FS_PROCFS_EXCLUDE_PROCESS is not set
|
||||
# CONFIG_FS_PROCFS_EXCLUDE_UPTIME is not set
|
||||
# CONFIG_FS_PROCFS_EXCLUDE_VERSION is not set
|
||||
# CONFIG_FS_PROCFS_EXCLUDE_MTD is not set
|
||||
# CONFIG_FS_PROCFS_EXCLUDE_PARTITIONS is not set
|
||||
# CONFIG_FS_PROCFS_EXCLUDE_SMARTFS is not set
|
||||
CONFIG_FS_ROMFS=y
|
||||
# CONFIG_FS_TMPFS is not set
|
||||
|
||||
#
|
||||
# Block Driver Configurations
|
||||
#
|
||||
# CONFIG_RAMDISK is not set
|
||||
|
||||
#
|
||||
# MTD Configuration
|
||||
#
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_PARTITION=y
|
||||
CONFIG_MTD_PARTITION_NAMES=y
|
||||
CONFIG_MTD_PROGMEM=y
|
||||
CONFIG_MTD_FTL=y
|
||||
|
||||
#
|
||||
# MTD_FTL Configurations
|
||||
#
|
||||
CONFIG_MTD_CONFIG=y
|
||||
|
||||
#
|
||||
# MTD Configurations
|
||||
#
|
||||
# CONFIG_MTD_CONFIG_RAM_CONSOLIDATE is not set
|
||||
CONFIG_MTD_CONFIG_ERASEDVALUE=0xff
|
||||
# CONFIG_MTD_BYTE_WRITE is not set
|
||||
|
||||
#
|
||||
# MTD Device Drivers
|
||||
#
|
||||
# CONFIG_MTD_M25P is not set
|
||||
# CONFIG_RAMMTD is not set
|
||||
CONFIG_MTD_SMART=y
|
||||
|
||||
#
|
||||
# SMART Device options
|
||||
#
|
||||
CONFIG_MTD_SMART_SECTOR_SIZE=512
|
||||
# CONFIG_MTD_SMART_WEAR_LEVEL is not set
|
||||
# CONFIG_MTD_SMART_ENABLE_CRC is not set
|
||||
# CONFIG_MTD_SMART_SECTOR_ERASE_DEBUG is not set
|
||||
# CONFIG_MTD_SMART_ALLOC_DEBUG is not set
|
||||
# CONFIG_MTD_W25 is not set
|
||||
|
||||
#
|
||||
# System Logging
|
||||
#
|
||||
# CONFIG_SYSLOG is not set
|
||||
# CONFIG_SYSLOG_TIMESTAMP is not set
|
||||
|
||||
#
|
||||
# Database
|
||||
#
|
||||
# CONFIG_ARASTORAGE is not set
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
#
|
||||
# CONFIG_REALLOC_DISABLE_NEIGHBOR_EXTENSION is not set
|
||||
# CONFIG_MM_SMALL is not set
|
||||
CONFIG_MM_REGIONS=1
|
||||
# CONFIG_GRAN is not set
|
||||
|
||||
#
|
||||
# Power Management
|
||||
#
|
||||
# CONFIG_PM is not set
|
||||
|
||||
#
|
||||
# Debug Options
|
||||
#
|
||||
# CONFIG_DEBUG is not set
|
||||
|
||||
#
|
||||
# Stack Debug Options
|
||||
#
|
||||
CONFIG_ARCH_HAVE_STACKCHECK=y
|
||||
CONFIG_STACK_COLORATION=y
|
||||
|
||||
#
|
||||
# Build Debug Options
|
||||
#
|
||||
# CONFIG_DEBUG_SYMBOLS is not set
|
||||
# CONFIG_FRAME_POINTER is not set
|
||||
|
||||
#
|
||||
# Logger Module
|
||||
#
|
||||
# CONFIG_LOGM is not set
|
||||
|
||||
#
|
||||
# Built-in Libraries
|
||||
#
|
||||
|
||||
#
|
||||
# Standard C Library Options
|
||||
#
|
||||
CONFIG_STDIO_BUFFER_SIZE=64
|
||||
CONFIG_STDIO_LINEBUFFER=y
|
||||
CONFIG_NUNGET_CHARS=2
|
||||
CONFIG_LIB_HOMEDIR="/"
|
||||
CONFIG_LIBM=y
|
||||
# CONFIG_NOPRINTF_FIELDWIDTH is not set
|
||||
CONFIG_LIBC_FLOATINGPOINT=y
|
||||
CONFIG_LIBC_FLOATPRECISION=6
|
||||
CONFIG_LIBC_SCANSET=y
|
||||
# CONFIG_NOPRINTF_LONGLONG_TO_ASCII is not set
|
||||
CONFIG_LIBC_IOCTL_VARIADIC=y
|
||||
# CONFIG_LIBC_WCHAR is not set
|
||||
# CONFIG_LIBC_LOCALE is not set
|
||||
CONFIG_LIB_RAND_ORDER=1
|
||||
# CONFIG_EOL_IS_CR is not set
|
||||
# CONFIG_EOL_IS_LF is not set
|
||||
# CONFIG_EOL_IS_BOTH_CRLF is not set
|
||||
CONFIG_EOL_IS_EITHER_CRLF=y
|
||||
CONFIG_LIBC_STRERROR=y
|
||||
# CONFIG_LIBC_STRERROR_SHORT is not set
|
||||
# CONFIG_LIBC_PERROR_STDOUT is not set
|
||||
CONFIG_LIBC_TMPDIR="/tmp"
|
||||
CONFIG_LIBC_MAX_TMPFILE=32
|
||||
CONFIG_ARCH_LOWPUTC=y
|
||||
# CONFIG_LIBC_LOCALTIME is not set
|
||||
# CONFIG_TIME_EXTENDED is not set
|
||||
CONFIG_LIB_SENDFILE_BUFSIZE=512
|
||||
CONFIG_ARCH_OPTIMIZED_FUNCTIONS=y
|
||||
# CONFIG_ARCH_MEMCPY is not set
|
||||
CONFIG_MEMCPY_VIK=y
|
||||
# CONFIG_MEMCPY_PRE_INC_PTRS is not set
|
||||
CONFIG_MEMCPY_INDEXED_COPY=y
|
||||
# CONFIG_MEMCPY_64BIT is not set
|
||||
# CONFIG_ARCH_MEMCMP is not set
|
||||
# CONFIG_ARCH_MEMMOVE is not set
|
||||
# CONFIG_ARCH_MEMSET is not set
|
||||
# CONFIG_MEMSET_OPTSPEED is not set
|
||||
# CONFIG_ARCH_STRCHR is not set
|
||||
# CONFIG_ARCH_STRCMP is not set
|
||||
# CONFIG_ARCH_STRCPY is not set
|
||||
# CONFIG_ARCH_STRNCPY is not set
|
||||
# CONFIG_ARCH_STRLEN is not set
|
||||
# CONFIG_ARCH_STRNLEN is not set
|
||||
# CONFIG_ARCH_BZERO is not set
|
||||
|
||||
#
|
||||
# Non-standard Library Support
|
||||
#
|
||||
|
||||
#
|
||||
# Basic CXX Support
|
||||
#
|
||||
# CONFIG_C99_BOOL8 is not set
|
||||
# CONFIG_HAVE_CXX is not set
|
||||
|
||||
#
|
||||
# External Libraries
|
||||
#
|
||||
# CONFIG_AVS_DEVICE_SDK is not set
|
||||
# CONFIG_AWS_SDK is not set
|
||||
# CONFIG_NETUTILS_CODECS is not set
|
||||
|
||||
#
|
||||
# CURL Options
|
||||
#
|
||||
# CONFIG_ENABLE_CURL is not set
|
||||
# CONFIG_ERROR_REPORT is not set
|
||||
# CONFIG_ENABLE_IOTIVITY is not set
|
||||
# CONFIG_NETUTILS_JSON is not set
|
||||
# CONFIG_LIBTUV is not set
|
||||
# CONFIG_STRESS_TOOL is not set
|
||||
# CONFIG_VOICE_SOFTWARE_EPD is not set
|
||||
|
||||
#
|
||||
# Application Configuration
|
||||
#
|
||||
|
||||
#
|
||||
# Application entry point list
|
||||
#
|
||||
CONFIG_ENTRY_MANUAL=y
|
||||
CONFIG_USER_ENTRYPOINT="jerry_main"
|
||||
CONFIG_BUILTIN_APPS=y
|
||||
|
||||
#
|
||||
# Examples
|
||||
#
|
||||
# CONFIG_EXAMPLES_AVS_TEST is not set
|
||||
# CONFIG_EXAMPLES_AWS is not set
|
||||
# CONFIG_EXAMPLES_CURLTEST is not set
|
||||
# CONFIG_EXAMPLES_EEPROM_TEST is not set
|
||||
# CONFIG_EXAMPLES_EVENTLOOP is not set
|
||||
# CONFIG_EXAMPLES_FOTA_SAMPLE is not set
|
||||
# CONFIG_FILESYSTEM_HELPER_ENABLE is not set
|
||||
# CONFIG_EXAMPLES_HELLO is not set
|
||||
# CONFIG_EXAMPLES_HELLOXX is not set
|
||||
# CONFIG_EXAMPLES_IOTBUS_TEST is not set
|
||||
# CONFIG_EXAMPLES_IOTJS_STARTUP is not set
|
||||
# CONFIG_EXAMPLES_KERNEL_SAMPLE is not set
|
||||
# CONFIG_EXAMPLES_LIBTUV is not set
|
||||
# CONFIG_EXAMPLES_NETTEST is not set
|
||||
# CONFIG_EXAMPLES_PROC_TEST is not set
|
||||
# CONFIG_EXAMPLES_SELECT_TEST is not set
|
||||
# CONFIG_EXAMPLES_SENSORBOARD is not set
|
||||
# CONFIG_EXAMPLES_SETJMP_TEST is not set
|
||||
# CONFIG_EXAMPLES_SMART is not set
|
||||
# CONFIG_EXAMPLES_SMART_TEST is not set
|
||||
# CONFIG_EXAMPLES_SPEECH_DETECTOR_TEST is not set
|
||||
# CONFIG_EXAMPLES_ST_THINGS is not set
|
||||
# CONFIG_EXAMPLES_TESTCASE is not set
|
||||
|
||||
#
|
||||
# Platform-specific Support
|
||||
#
|
||||
# CONFIG_PLATFORM_CONFIGDATA is not set
|
||||
|
||||
#
|
||||
# Shell
|
||||
#
|
||||
CONFIG_TASH=y
|
||||
CONFIG_TASH_MAX_COMMANDS=32
|
||||
# CONFIG_TASH_USLEEP is not set
|
||||
CONFIG_TASH_COMMAND_INTERFACE=y
|
||||
CONFIG_TASH_CMDTASK_STACKSIZE=4096
|
||||
CONFIG_TASH_CMDTASK_PRIORITY=100
|
||||
# CONFIG_TASH_SCRIPT is not set
|
||||
|
||||
#
|
||||
# System Libraries and Add-Ons
|
||||
#
|
||||
CONFIG_SYSTEM_CLE=y
|
||||
CONFIG_SYSTEM_CLE_DEBUGLEVEL=0
|
||||
# CONFIG_SYSTEM_CUTERM is not set
|
||||
# CONFIG_SYSTEM_FLASH_ERASEALL is not set
|
||||
# CONFIG_SYSTEM_FOTA_HAL is not set
|
||||
# CONFIG_SYSTEM_INIFILE is not set
|
||||
CONFIG_SYSTEM_PREAPP_INIT=y
|
||||
CONFIG_SYSTEM_PREAPP_STACKSIZE=2048
|
||||
# CONFIG_SYSTEM_INSTALL is not set
|
||||
CONFIG_JERRYSCRIPT=y
|
||||
CONFIG_JERRYSCRIPT_PRIORITY=100
|
||||
CONFIG_JERRYSCRIPT_STACKSIZE=16384
|
||||
CONFIG_SYSTEM_RAMTEST=y
|
||||
CONFIG_SYSTEM_RAMTEST_PRIORITY=100
|
||||
CONFIG_SYSTEM_RAMTEST_STACKSIZE=1024
|
||||
CONFIG_SYSTEM_READLINE=y
|
||||
CONFIG_READLINE_ECHO=y
|
||||
CONFIG_SYSTEM_INFORMATION=y
|
||||
CONFIG_KERNEL_CMDS=y
|
||||
CONFIG_FS_CMDS=y
|
||||
CONFIG_FSCMD_BUFFER_LEN=64
|
||||
CONFIG_ENABLE_DATE_CMD=y
|
||||
CONFIG_ENABLE_ENV_GET_CMD=y
|
||||
CONFIG_ENABLE_ENV_SET_CMD=y
|
||||
CONFIG_ENABLE_ENV_UNSET_CMD=y
|
||||
CONFIG_ENABLE_FREE_CMD=y
|
||||
CONFIG_ENABLE_HEAPINFO_CMD=y
|
||||
# CONFIG_HEAPINFO_USER_GROUP is not set
|
||||
# CONFIG_ENABLE_IRQINFO_CMD is not set
|
||||
CONFIG_ENABLE_KILL_CMD=y
|
||||
CONFIG_ENABLE_KILLALL_CMD=y
|
||||
CONFIG_ENABLE_PS_CMD=y
|
||||
CONFIG_ENABLE_STACKMONITOR_CMD=y
|
||||
CONFIG_STACKMONITOR_PRIORITY=100
|
||||
CONFIG_STACKMONITOR_INTERVAL=5
|
||||
CONFIG_ENABLE_UPTIME_CMD=y
|
||||
CONFIG_SYSTEM_VI=y
|
||||
CONFIG_SYSTEM_VI_COLS=64
|
||||
CONFIG_SYSTEM_VI_ROWS=16
|
||||
CONFIG_SYSTEM_VI_DEBUGLEVEL=0
|
||||
|
||||
#
|
||||
# Runtime Environment
|
||||
#
|
||||
# CONFIG_ENABLE_IOTJS is not set
|
||||
|
||||
#
|
||||
# Device Management
|
||||
#
|
||||
|
||||
#
|
||||
# Task manager
|
||||
#
|
||||
# CONFIG_TASK_MANAGER is not set
|
||||
|
||||
#
|
||||
# Event Loop Framework
|
||||
#
|
||||
# CONFIG_EVENTLOOP is not set
|
||||
|
||||
#
|
||||
# Things Management
|
||||
#
|
||||
# CONFIG_ST_THINGS is not set
|
||||
|
||||
#
|
||||
# IoTBus Framework
|
||||
#
|
||||
# CONFIG_IOTBUS is not set
|
||||
Loading…
x
Reference in New Issue
Block a user