packages/utils/hdparm/Makefile
Rosen Penev cb6e9c6f21 hdparm: Fix LDFLAGS
Based on debian patch. LDFLAGS were not being passed, which caused relro
to not be applies.

Also made stock CFLAGS optional. -fkeep-inline was keeping sizes high.

Removed PKG_NO_MIPS16 as the original problem seems to be gone.

Size from 54338 to 50761

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-21 21:38:57 -08:00

40 lines
928 B
Makefile

#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=hdparm
PKG_VERSION:=9.58
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_HASH:=9ae78e883f3ce071d32ee0f1b9a2845a634fc4dd94a434e653fdbef551c5e10f
PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
PKG_LICENSE:=BSD-Style Open Source License
include $(INCLUDE_DIR)/package.mk
define Package/hdparm
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Disc
TITLE:=Hard disk drive configuration utilitity
URL:=https://sourceforge.net/projects/hdparm/
endef
define Package/hdparm/description
get/set SATA/IDE device parameters
endef
define Package/hdparm/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin
endef
$(eval $(call BuildPackage,hdparm))