libc/gpsutils: merged into one target to fix the issue of parallel compilation

Because multiple dependencies behind the context are compiled in parallel,
if they have dependencies on each other, it will cause compilation errors

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2023-08-21 20:45:51 +08:00 committed by Xiang Xiao
parent efc75de61e
commit 33446608b5

View File

@ -31,25 +31,24 @@ $(MINMEA_UNPACKNAME):
$(Q) mkdir $(MINMEA_UNPACKNAME) $(Q) mkdir $(MINMEA_UNPACKNAME)
$(Q) unzip -o -j $(MINMEA_VERSION).zip -d $(MINMEA_UNPACKNAME) $(Q) unzip -o -j $(MINMEA_VERSION).zip -d $(MINMEA_UNPACKNAME)
$(call DELFILE, $(MINMEA_VERSION).zip) $(call DELFILE, $(MINMEA_VERSION).zip)
$(Q) mkdir -p $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM)
$(Q) cp gpsutils/minmea/minmea.h $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM)
# Files # Files
CSRCS += minmea.c CSRCS += minmea.c
CFLAGS += -std=c99 CFLAGS += -std=c99
.header:
$(shell mkdir -p $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM))
$(shell cp gpsutils/minmea/minmea.h $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM))
clean:: clean::
$(call DELFILE, $(OBJS)) $(call DELFILE, $(OBJS))
# Download and unpack tarball if no git repo found # Download and unpack tarball if no git repo found
ifeq ($(wildcard $(MINMEA_UNPACKNAME)/.git),) ifeq ($(wildcard $(MINMEA_UNPACKNAME)/.git),)
context:: $(MINMEA_UNPACKNAME) .header context:: $(MINMEA_UNPACKNAME)
distclean:: distclean::
$(call DELDIR, $(MINMEA_UNPACKNAME)) $(call DELDIR, $(MINMEA_UNPACKNAME))
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM))
else else
context:: .header context:: .header
endif endif