From 21d6f8fd2244fb74f23afd1ed2c529c0e78e46dd Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Fri, 27 Oct 2006 19:35:00 +0000 Subject: [PATCH] use target optimizations SVN-Revision: 5317 --- utils/hdparm/Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/utils/hdparm/Makefile b/utils/hdparm/Makefile index 9328b07e2..f6402b403 100644 --- a/utils/hdparm/Makefile +++ b/utils/hdparm/Makefile @@ -12,13 +12,12 @@ PKG_NAME:=hdparm PKG_VERSION:=6.6 PKG_RELEASE:=1 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/hdparm PKG_MD5SUM:=ecea69f775396e4ab6112dcf9066239f PKG_CAT:=zcat -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk @@ -26,16 +25,23 @@ define Package/hdparm SECTION:=utils CATEGORY:=Utilities TITLE:=Hard disk drive configuration utilitity - DESCRIPTION:=Hard disk drive configuration utilitity.\\\ - Tune hard disk parameters for high performance.\\\ - Get/set hard disk parameters for Linux IDE drives.\\\ - Primary use is for enabling irq-unmasking and IDE multiplemode. + DESCRIPTION:=\ + Tune hard disk parameters for high performance.\\\ + Get/set hard disk parameters for Linux IDE drives.\\\ + Primary use is for enabling irq-unmasking and IDE multiplemode. URL:=http://sourceforge.net/projects/hdparm/ endef define Build/Configure endef +define Build/Compile + $(call Build/Compile/Default, \ + CFLAGS="\$$$$(EXTRA_CFLAGS)" \ + LDFLAGS="\$$$$(EXTRA_LDFLAGS)" \ + ) +endef + define Package/hdparm/install install -d -m0755 $(1)/usr/sbin install -m0755 $(PKG_BUILD_DIR)/hdparm $(1)/usr/sbin -- 2.30.2