mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Fixes build error with gcc 16.x:
interactive.c: In function 'interactiveShowData':
interactive.c:334:49: error: '%5d' directive output may be truncated
writing between 5 and 11 bytes into a region of size 7
[-Werror=format-truncation=]
334 | snprintf(strFl, sizeof(strFl), "%5d ", convert_altitude(modeC * 100));
| ^~~
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# dump1090
|
|
#
|
|
################################################################################
|
|
|
|
DUMP1090_VERSION = 10.2
|
|
DUMP1090_SITE = $(call github,flightaware,dump1090,v$(DUMP1090_VERSION))
|
|
DUMP1090_LICENSE = GPL-2.0+
|
|
DUMP1090_LICENSE_FILES = LICENSE
|
|
DUMP1090_DEPENDENCIES = host-pkgconf ncurses
|
|
DUMP1090_MAKE_OPTS = BLADERF=no CPUFEATURES=no LIMESDR=no
|
|
|
|
define DUMP1090_NO_WERROR
|
|
$(SED) 's/-Werror//' $(@D)/Makefile
|
|
endef
|
|
DUMP1090_POST_PATCH_HOOKS += DUMP1090_NO_WERROR
|
|
|
|
ifeq ($(BR2_PACKAGE_HACKRF),y)
|
|
DUMP1090_DEPENDENCIES += hackrf
|
|
DUMP1090_MAKE_OPTS += HACKRF=yes
|
|
else
|
|
DUMP1090_MAKE_OPTS += HACKRF=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRTLSDR),y)
|
|
DUMP1090_DEPENDENCIES += librtlsdr
|
|
DUMP1090_MAKE_OPTS += RTLSDR=yes
|
|
else
|
|
DUMP1090_MAKE_OPTS += RTLSDR=no
|
|
endif
|
|
|
|
define DUMP1090_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr \
|
|
-C $(@D) $(DUMP1090_MAKE_OPTS)
|
|
endef
|
|
|
|
define DUMP1090_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/dump1090 $(TARGET_DIR)/usr/bin/dump1090
|
|
$(INSTALL) -m 0755 -D $(@D)/view1090 $(TARGET_DIR)/usr/bin/view1090
|
|
$(INSTALL) -d $(TARGET_DIR)/usr/share/dump1090
|
|
cp -r $(@D)/public_html/* $(TARGET_DIR)/usr/share/dump1090
|
|
endef
|
|
|
|
$(eval $(generic-package))
|