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) unzip -o -j $(MINMEA_VERSION).zip -d $(MINMEA_UNPACKNAME)
$(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
CSRCS += minmea.c
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::
$(call DELFILE, $(OBJS))
# Download and unpack tarball if no git repo found
ifeq ($(wildcard $(MINMEA_UNPACKNAME)/.git),)
context:: $(MINMEA_UNPACKNAME) .header
context:: $(MINMEA_UNPACKNAME)
distclean::
$(call DELDIR, $(MINMEA_UNPACKNAME))
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM))
else
context:: .header
endif