-
Notifications
You must be signed in to change notification settings - Fork 683
Change tizenrt-artik05x port reference board to artik053 #1904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
############################################################################ | ||
# configs/stm32_tiny/nsh/Make.defs | ||
# 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 <[email protected]> | ||
|
@@ -37,14 +71,8 @@ include ${TOPDIR}/.config | |
include ${TOPDIR}/tools/Config.mk | ||
include ${TOPDIR}/arch/arm/src/armv7-r/Toolchain.defs | ||
|
||
ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y) | ||
ifeq ($(CONFIG_BOARD_FOTA_SUPPORT),y) | ||
LDSCRIPT_OTA1 = ld_s5jt200_flash_ota1.script | ||
endif | ||
LDSCRIPT = ld_s5jt200_flash.script | ||
else | ||
LDSCRIPT = ld_s5jt200.script | ||
endif | ||
LDSCRIPT = flash.ld | ||
|
||
ifeq ($(CONFIG_UCLIBCXX_HAVE_LIBSUPCXX),y) | ||
LIBSUPXX = ${shell $(CC) --print-file-name=libsupc++.a} | ||
EXTRA_LIBPATHS = -L "${shell dirname "$(LIBSUPXX)"}" | ||
|
@@ -65,9 +93,6 @@ else | |
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/../framework/include | ||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx -isystem $(TOPDIR)/include/uClibc++ | ||
ARCHSCRIPT = -T$(TOPDIR)/../build/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT) | ||
ifeq ($(CONFIG_BOARD_FOTA_SUPPORT),y) | ||
ARCHSCRIPT_FOTA = -T$(TOPDIR)/../build/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT_OTA1) | ||
endif | ||
|
||
endif | ||
|
||
|
@@ -96,41 +121,32 @@ ifeq ($(CONFIG_FRAME_POINTER),y) | |
ARCHOPTIMIZATION += -fno-omit-frame-pointer -mapcs -mno-sched-prolog | ||
endif | ||
|
||
ifeq ($(CONFIG_ARM_UNWIND),y) | ||
ARCHOPTIMIZATION += -fasynchronous-unwind-tables | ||
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 | ||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-implicit-function-declaration -Wno-unused-function -Wno-unused-but-set-variable | ||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef | ||
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 | ||
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 | ||
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__ | ||
MAXOPTIMIZATION = -O2 | ||
|
||
|
||
NXFLATLDFLAGS1 = -r -d -warn-common | ||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections | ||
|
@@ -148,18 +164,14 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y) | |
LDFLAGS += -g | ||
endif | ||
|
||
LDFLAAGS += --gc-sections | ||
|
||
HOSTCC = gcc | ||
HOSTINCLUDES = -I. | ||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe | ||
HOSTLDFLAGS = | ||
|
||
#################### SIDK_S5JT200 DOWNLOAD LOGIC ################################### | ||
# function : DOWNLOAD | ||
# prototype : DOWNLOAD <arguments> | ||
# arguments : [ALL | RESOURCE ] | ||
# example : DOWNLOAD ALL; DOWNLOAD RESOURCE; | ||
define DOWNLOAD | ||
@$(TOPDIR)/../build/configs/$(CONFIG_ARCH_BOARD)/$(CONFIG_ARCH_BOARD)_download.sh $(1) | ||
@$(TOPDIR)/../build/configs/artik053/artik053_download.sh $(1) | ||
endef | ||
#################### END ####################################################### | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a strange copyright/license block. Don't we add all code under the "JS Foundation and other contributors" copyright only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosthekiss At first, I added the JS foundation license since I thought all new/modified code in jerryscript project must have JS foundation license. Is it right? If not, could you give me the license rule? Anyway, for this case, I found that I did not modified Make.defs. (I modified defconfig only.) So I can remove the JS foundation license. Thank you for review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosthekiss I've updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glistening It seems that now the "JS Foundation and other contributors" copyright clause is gone and got replaced by company copyright notice. This should happen the other way around.
When the project was transferred to the Foundation, all "top-level" individual and company copyright notices were replaced by the catch-all "Copyright JS Foundation and other contributors" notice. (There are some files that have been imported into the project from external sources with non-Apache2 but compatible licenses. There, there appropriate notices are preserved below the Apache2 license block, see
jerry-libm/*.c
orjerry-core/ecma/base/ecma-helpers-errol.c
. Thus the reference to "top-level" notices.) This has been documented in the Contribution Guidelines as well: https://github.com/jerryscript-project/jerryscript/blob/master/CONTRIBUTING.md#2-ensure-all-files-have-a-proper-license-header-and-copyright-noticeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosthekiss I got it. You don't want to keep NuttX license in jerryscript project since the project only permits Apache2 license. Then, I have another question. What is the difference between this case and https://github.com/jerryscript-project/jerryscript/tree/master/third-party/valgrind/memcheck.h (or valgrind.h)? If these are Apache2 compatible licenses, NuttX seems to be also compatible when I take a close look into each clauses.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glistening Well, that's not exactly what I was trying to say. This commit tries to add an Apache 2.0 license header with a
Copyright 2017 Samsung Electronics All Rights Reserved.
notice. But that's explicitly prohibited by the contribution guidelines (as linked and quoted in my above comment). The Apache 2.0 license header must be accompanied by theCopyright JS Foundation and other contributors, http://js.foundation
project-wide notice:As for BSD or BSD-like licenses (e.g., the NuttX license): I did not want to suggest its removal (I think that would explicitly go against the provisions of BSD3.) Such a compatible license block (together with its copyright notice) can be kept below the Apache 2.0 license block (that's why I referred to
jerry-libm
andecma-helpers-errol.c
, which also contain an additional - although not BSD but other Apache 2.0 compatible - license block). Fortunately, this is permitted by our guidelines:As for the
third-party/valgrind
library: I don't exactly know the history of that part. It's been there for a while and has not been touched since it's addition in 2014. I don't really know why it was not touched when the project was transferred to JS Foundation. However, I do think that any new code/contribution should follow the current guidelines.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosthekiss First, thank you again for explanation. By the way, I did not add the header with a
Copyright 2017 Samsung Electronics All Rights Reserved
. The header came from the base file in TizenRT. I just added JS Foundation license only. The result was my first commit like following:JS Foundation license (Apache2 : for conforming jerryscript license rule)
Samsung license (Apache2 : from TizenRT)
NuttX license (BSD-like : from NuttX)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosthekiss I've updated this PR like the above. Please give me comment if this PR needs further correction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glistening Ah, so. It was not evident to me from the original PR comment(s). Your explanation clarifies things, thanks.