ap51-flash: Update to 2019.0.1
authorRosen Penev <rosenp@gmail.com>
Wed, 30 Oct 2019 17:25:16 +0000 (10:25 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 30 Oct 2019 17:26:11 +0000 (10:26 -0700)
Added some size optimizations.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/ap51-flash/Makefile

index 6ba1903b6815cddfc16ad6566d7ed688575e632d..860a8d24db2c4ae7757b711965864140d1c1f86b 100644 (file)
@@ -7,12 +7,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ap51-flash
-PKG_VERSION:=2019.0
-PKG_RELEASE:=2
+PKG_VERSION:=2019.0.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/ap51-flash/ap51-flash/releases/download/v$(PKG_VERSION)
-PKG_HASH:=e7992b2151721cc6f5db91f443ad7fc83cb5604c08cd11fca3e78ecd6b538e57
+PKG_HASH:=7146a22576a23bfe36673980bc3795a97417692eaddb2f90b527074a7d7e42d5
+
 PKG_MAINTAINER:=Russell Senior <russell@personaltelco.net>
 PKG_LICENSE:=GPL-3.0-or-later CC0-1.0
 PKG_LICENSE_FILES:=LICENSES/GPL-3.0-or-later.txt LICENSES/CC0-1.0.txt
@@ -31,6 +32,9 @@ MAKE_FLAGS += \
        REVISION="$(PKG_VERSION)" \
        ap51-flash
 
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+
 define Package/ap51-flash/install
        $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin \
                $(1)/usr/lib/ap51-flash