Comments (9)
Instead of finding the index of the string, you could zip the two lists together (https://riptutorial.com/makefile/example/23643/zipping-lists), and then eval a template (https://www.gnu.org/software/make/manual/html_node/Eval-Function.html) for each pair.
from nuttx-apps.
This is the problematic line:
https://github.com/apache/incubator-nuttx-apps/blob/f3828ccbca3e45319d804cd5c3f91a4764de68c8/Application.mk#L185
from nuttx-apps.
Good finding @v01d ! Is this multiple buitin applications feature documented in some place?
from nuttx-apps.
Not really, it would be good to have a section in the docs explaining how to write an app (maybe under "applications").
from nuttx-apps.
A workaround is to not use main
to define the entry point, the <progname>_main
and thus not rely on this feature.
from nuttx-apps.
Well, in the past it was appxyz_main(), move to main() was an improvement. Maybe we can fix it without returning to the previous way to do it.
from nuttx-apps.
I don't really have a better proposal and don't really like the added complexity of the solution, so I will just leave this issue open in case someone thinks of a better approach. I mentioned the workaround in case someone bumps into the problem. I wasn't proposing we adopt it for existing apps, since it would be going backwards as you mention.
from nuttx-apps.
Yes, this is the right approach to fix this problem I discussed internally with @anchao .
from nuttx-apps.
Yes, this is the right approach to fix this problem I discussed internally with @anchao .
@anchao has fixed this incremental compilation issue in this excellent work #1603,
but there is also a potential risk:
Important
If an application has MAINSRCS with the same name in different directories,
function GETENTRYINDEX
will have wrong results because notdir
is used.
I plan to establish a mapping relationship between progname and src during defining variables.
from nuttx-apps.
Related Issues (20)
- Documentation for what each of the apps actually do HOT 1
- Changes to NuttX relating to c++ reserved words has broken apps HOT 5
- Clean up Makefile/Kconfig dependency checks
- What to do with READMEs that are already in the Documentation ?
- Compilation failure due to improper handling of CAN utils lely-core package HOT 1
- `libtest` does not work HOT 8
- esp32s3: support lowpower mode? HOT 4
- rp2040: mv command hangs up at SMARTFS on internal flash memory HOT 1
- [help] confirming ostest output in KERNEL mode HOT 2
- EXAMPLES_NOTEPRINTF and SYSTEM_NOTE don't build
- rpporxy does not work HOT 8
- REGEX wildcards in NSH HOT 1
- Some errors is reported when the sqlite database is compiled HOT 5
- `CONFIG_SYSTEM_DHCPC_RENEW6` implicitly depends on `CONFIG_NET_ICMPv6_AUTOCONF`
- LVGL V9 and framebuffer - image is tearing but didn't with LVGL V8 HOT 3
- getpid() broken - or changed? HOT 1
- DNS issues on NTP client HOT 2
- NSH I/O redirection and I/O operation doesn't work and incomplete
- LVGL Version
- [HELP] Cannot debug esp32c6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuttx-apps.