Advertising

ASF subversion and git services commented on MYNEWT-500:
--------------------------------------------------------
Commit 46103ff05fa4c639f64e68fd47ac89a3de3b90e1 in incubator-mynewt-newt's
branch refs/heads/develop from [~ccollins476]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-newt.git;h=46103ff
]
MYNEWT-500 newt - preserve src dir tree in bin dir
This addresses an ambiguity that occurs when a package contains two
source files with the same filename. For example, the arduino repo
(until very recently) contained the following two files:
hw/mcu/atmel/samd21xx/src/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c
hw/mcu/atmel/samd21xx/src/startup_samd21.c
Both of these files are in the same package (hw/mcu/atmel/samd21) and
they both have the same filename (startup_samd21c).
During a build, newt compiles both, but only links in one object file.
The problem is that the bin directory structure does not mirror that of
the source tree. Specifically, all of a package's object files get put
in the same directory; subtrees are not preserved. Consequently, the
second .o file overwrites the first.
The fix is to preserve the source directory structure in the bin
directory.
> newt - Ambiguity when package contains two source files with the same filename
> ------------------------------------------------------------------------------
>
> Key: MYNEWT-500
> URL: https://issues.apache.org/jira/browse/MYNEWT-500
> Project: Mynewt
> Issue Type: Bug
> Components: Newt
> Reporter: Christopher Collins
> Assignee: Christopher Collins
> Fix For: v1_0_0_rel
>
>
> For example, the arduino repo (until very recently) contained the following
> two files:
> *
> {{hw/mcu/atmel/samd21xx/src/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c}}
> * {{hw/mcu/atmel/samd21xx/src/startup_samd21.c}}
> Both of these files are in the same package (hw/mcu/atmel/samd21) and they
> both have the same filename (startup_samd21c).
> During a build, newt compiles both, but only links in one object file.
> The problem is that the bin directory structure does not mirror that of the
> source tree. Specifically, all of a package's object files get put in the
> same directory; subtrees are not preserved. Consequently, the second .o file
> overwrites the first.
> The fix is to preserve the source directory structure in the bin directory.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)