>From LVGL's point of view, I see no problem with a NuttX managed build if the generated configs are available in "<nuttx/config.h>".
According to our plan only "<nuttx/config.h>" needs to be included in "lv_conf.h" and LVGL will take care to internally translate the KConfig configs to LVGL configs. See my proposal about it here: https://github.com/lvgl/lvgl/issues/1752 The gist is this (stored in an internal file of LVGL): #ifndef LV_USE_BTN /*Only if not defined in lv_conf.h*/ # ifdef CONFIG_LV_USE_BTN /*Use KConfig value if set*/ # define LV_USE_BTN CONFIG_LV_USE_BTN # else # define LV_USE_BTN 1 /*Use default value*/ # endif #endif Can it work this way? Matias N. <mat...@imap.cc> ezt írta (időpont: 2020. aug. 26., Sze, 15:03): > LVGLs Kconfig in NuttX is used to define macros which are picked up in > lv_conf.h. Indeed this is painful to maintain whenever a new LVGL version > appears and changes lv_conf_template.h. > > Including a child Kconfig is no problem. The issue is that in this case > NuttX controls the build and not LVGL so I'm not sure how you would > distribute LVGL assuming a higher level build system generating the .config > and config.h. > > These two files are placed in nuttx root and include/nuttx respectively. > The config.h is included in all source files in NuttX so if this include is > made visible to LVGL itself this would complete integration (maybe allowing > LVGL user to supply a header where we could just do "#include > <nuttx/config.h>". > If you can make LVGL optionally NOT generate its own config.h and .config > we could indeed just include the Kconfig and Make.defs (as it is done now). > > Best, > Matias > > On Wed, Aug 26, 2020, at 09:52, Gábor Kiss-Vámosi wrote: > > Hi Matias, > > I’ve checked the current LVGL KConfig in NuttX and it seems up to date but > some help messages are quite outdated. I think it’d be awesome to somehow > use LVGL’s Kconfig to be sure you always have the latest and official > version. > > I wonder if it’s possible to simply rsource LVGL’s KConfig here > <https://github.com/apache/incubator-nuttx-apps/blob/master/graphics/lvgl/Kconfig#L13> > . > > Where are the .config and config.h are created? If we can .gitignore them > from LVGL then I have no problem with it. > > Regards, > Gabor > > > > Matias N. <mat...@imap.cc> ezt írta (időpont: 2020. aug. 26., Sze, 14:20): > > > Hi Alan and Gabor, > > I don't think that LVGL use of Kconfig should bother NuttX's since the > build is always self contained in a directory. The positive side is that we > could store a defconfig for LVGL on NuttX instead of the lv_conf.h that is > now. > Of course it would be cool if you could simply do "make menuconfig" on > NuttX and have LVGL options appear there, but I believe that would couple > LVGL and NuttX build systems which may not be the best idea. I'm not sure > if that can be done cleanly (it would always produce one .config and > config.h which both would have to read). > > Best, > Matias > > On Tue, Aug 25, 2020, at 21:22, Alan Carvalho de Assis wrote: > > Hi Everyone, > > Mr. Gábor Kiss-Vámosi contacted and told me that LVGL is moving to use > Kconfig: > > "At LVGL we are planning to add a Kconfig file to the main repo but we > are not sure if it will harm the existing Kconfig based projects. > > Could you comment on what your requirements are and what we should > consider in order to allow NuttX to use LVGL's Kcofig file or - if > it's not possible - to make sure it won't bother your Kconfig file?" > > So, I think this is a good opportunity to make NuttX more integrated > with LVGL. Suggestions are welcome. > > Gábor, I added you CC here because I don't know if you are subscribed > to NuttX at Apache Foundation mailing list. > > BR, > > Alan > > > >