mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
memstat: bump to 0.8 and migrate to Makefile.package.in
Closes #1129 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
8fe6cc98d9
commit
3b90d69843
4
CHANGES
4
CHANGES
@ -6,11 +6,13 @@
|
|||||||
X.org updated to 7.5.
|
X.org updated to 7.5.
|
||||||
|
|
||||||
Updated/fixed packages: busybox, dosfstools, e2fsprogs,
|
Updated/fixed packages: busybox, dosfstools, e2fsprogs,
|
||||||
libglib2, libpng, mtd-utils, pppd, setserial, squashfs, wget
|
libglib2, libpng, memstat, mtd-utils, pppd, setserial,
|
||||||
|
squashfs, wget
|
||||||
|
|
||||||
Issues resolved (http://bugs.uclibc.org):
|
Issues resolved (http://bugs.uclibc.org):
|
||||||
|
|
||||||
#1111: Bump wget to 1.12 and migrate to Makefile.autotools.in
|
#1111: Bump wget to 1.12 and migrate to Makefile.autotools.in
|
||||||
|
#1129: Bump memstat to 0.8 and migrate to Makefile.package.in
|
||||||
#1273: BR2_INET_IPV6 does not enable IPv6 in pppd
|
#1273: BR2_INET_IPV6 does not enable IPv6 in pppd
|
||||||
#1345: Bump pppd to 2.4.5 and convert to Makefile.autotools.in
|
#1345: Bump pppd to 2.4.5 and convert to Makefile.autotools.in
|
||||||
|
|
||||||
|
@ -4,48 +4,24 @@
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
MEMSTAT_VERSION:=0.5
|
MEMSTAT_VERSION = 0.8
|
||||||
MEMSTAT_SOURCE:=memstat_$(MEMSTAT_VERSION).tar.gz
|
MEMSTAT_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/m/memstat
|
||||||
MEMSTAT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/memstat
|
MEMSTAT_SOURCE = memstat_$(MEMSTAT_VERSION).tar.gz
|
||||||
MEMSTAT_DIR:=$(BUILD_DIR)/memstat-$(MEMSTAT_VERSION)
|
|
||||||
|
|
||||||
$(DL_DIR)/$(MEMSTAT_SOURCE):
|
define MEMSTAT_BUILD_CMDS
|
||||||
$(call DOWNLOAD,$(MEMSTAT_SITE),$(MEMSTAT_SOURCE))
|
$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
-C $(@D) memstat
|
||||||
|
endef
|
||||||
|
|
||||||
$(MEMSTAT_DIR)/.unpacked: $(DL_DIR)/$(MEMSTAT_SOURCE)
|
define MEMSTAT_INSTALL_TARGET_CMDS
|
||||||
$(ZCAT) $(DL_DIR)/$(MEMSTAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(INSTALL) -D $(@D)/memstat.conf -m 0644 \
|
||||||
toolchain/patch-kernel.sh $(MEMSTAT_DIR) package/memstat/ memstat-$(MEMSTAT_VERSION)\*.patch
|
$(TARGET_DIR)/etc/memstat.conf
|
||||||
touch $@
|
$(INSTALL) -D $(@D)/memstat $(TARGET_DIR)/usr/bin/memstat
|
||||||
|
endef
|
||||||
|
|
||||||
$(MEMSTAT_DIR)/.configured: $(MEMSTAT_DIR)/.unpacked
|
define MEMSTAT_UNINSTALL_TARGET_CMDS
|
||||||
touch $@
|
rm -f $(TARGET_DIR)/etc/memstat.conf
|
||||||
|
rm -f $(TARGET_DIR)/usr/bin/memstat
|
||||||
|
endef
|
||||||
|
|
||||||
$(MEMSTAT_DIR)/memstat: $(MEMSTAT_DIR)/.configured
|
$(eval $(call GENTARGETS,package,memstat))
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
|
||||||
$(CFLAGS_WHOLE_PROGRAM) $(@D)/memstat.c -o $@
|
|
||||||
|
|
||||||
$(TARGET_DIR)/usr/bin/memstat: $(MEMSTAT_DIR)/memstat
|
|
||||||
[ -e $(TARGET_DIR)/etc/memstat.conf ] || \
|
|
||||||
$(INSTALL) -m 0644 -D $(^D)/memstat.conf \
|
|
||||||
$(TARGET_DIR)/etc/memstat.conf
|
|
||||||
$(INSTALL) -m 0755 -D $^ $@
|
|
||||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
|
||||||
|
|
||||||
memstat: $(TARGET_DIR)/usr/bin/memstat
|
|
||||||
|
|
||||||
memstat-source: $(DL_DIR)/$(MEMSTAT_SOURCE)
|
|
||||||
|
|
||||||
memstat-clean:
|
|
||||||
rm -f $(MEMSTAT_DIR)/memstat \
|
|
||||||
$(TARGET_DIR)/etc/memstat.conf $(TARGET_DIR)/usr/bin/memstat
|
|
||||||
|
|
||||||
memstat-dirclean:
|
|
||||||
rm -rf $(MEMSTAT_DIR)
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(BR2_PACKAGE_MEMSTAT),y)
|
|
||||||
TARGETS+=memstat
|
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user