Coder Social home page Coder Social logo

Comments (9)

normanr avatar normanr commented on May 29, 2024 1

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.

protobits avatar protobits commented on May 29, 2024

This is the problematic line:
https://github.com/apache/incubator-nuttx-apps/blob/f3828ccbca3e45319d804cd5c3f91a4764de68c8/Application.mk#L185

from nuttx-apps.

acassis avatar acassis commented on May 29, 2024

Good finding @v01d ! Is this multiple buitin applications feature documented in some place?

from nuttx-apps.

protobits avatar protobits commented on May 29, 2024

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.

protobits avatar protobits commented on May 29, 2024

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.

acassis avatar acassis commented on May 29, 2024

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.

protobits avatar protobits commented on May 29, 2024

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.

xiaoxiang781216 avatar xiaoxiang781216 commented on May 29, 2024

Yes, this is the right approach to fix this problem I discussed internally with @anchao .

from nuttx-apps.

xuxin930 avatar xuxin930 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.