You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ra...@apache.org on 2025/02/20 07:45:11 UTC

(nuttx) branch master updated: libs/libnx: do not generate resource if CONFIG_NX is not enabled

This is an automated email from the ASF dual-hosted git repository.

raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d383a243f libs/libnx: do not generate resource if CONFIG_NX is not enabled
1d383a243f is described below

commit 1d383a243f125079d84613254f9c048c73e966bb
Author: chao an <an...@bytedance.com>
AuthorDate: Wed Feb 19 14:23:02 2025 +0800

    libs/libnx: do not generate resource if CONFIG_NX is not enabled
    
    To avoid generate resource if CONFIG_NX is disabled:
    | $ make -j12
    | Create version.h
    | CPP:  nxfonts_convert.c-> nxfonts_convert_8bpp.i
    | CPP:  nxfonts_convert.c-> nxfonts_convert_24bpp.i
    
    Signed-off-by: chao an <an...@bytedance.com>
---
 libs/libnx/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libs/libnx/Makefile b/libs/libnx/Makefile
index f9ab938f47..7aab39afad 100644
--- a/libs/libnx/Makefile
+++ b/libs/libnx/Makefile
@@ -46,6 +46,8 @@ all: $(BIN)
 .PHONY : context depend clean distclean gensources gen1bppsources gen2bppsource \
 	 gen4bppsource gen8bppsource gen16bppsource gen24bppsource gen32bppsources genfontsources
 
+ifeq ($(CONFIG_NXFONTS),y)
+
 gen1bppsources:
 	$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=1 EXTRAFLAGS="$(EXTRAFLAGS)"
 
@@ -200,6 +202,9 @@ ifeq ($(CONFIG_NXFONT_TOM_THUMB_4X6),y)
 endif
 
 gensources: gen1bppsources gen2bppsource gen4bppsource gen8bppsource gen16bppsource gen24bppsource gen32bppsources genfontsources
+else
+gensources:
+endif
 
 $(AOBJS): $(BINDIR)$(DELIM)%$(OBJEXT): %.S
 	$(call ASSEMBLE, $<, $@)