Skip to content

Commit

Permalink
optimize code of some libraries
Browse files Browse the repository at this point in the history
- intel-gpu-tools
- libelf
- libkmod
- libmount
- libpciaccess
- libva
- libva-utils
  • Loading branch information
hgy59 committed Dec 23, 2024
1 parent 927a592 commit 6e71b1d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cross/intel-gpu-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ CONFIGURE_ARGS += -Dman=disabled
CONFIGURE_ARGS += -Dtestplan=disabled
CONFIGURE_ARGS += -Dtests=disabled

ADDITIONAL_CFLAGS = -O

include ../../mk/spksrc.cross-meson.mk
2 changes: 2 additions & 0 deletions cross/libelf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ LICENSE = LPGL

GNU_CONFIGURE = 1

ADDITIONAL_CFLAGS = -O

INSTALL_MAKE_OPTIONS = install instroot=$(INSTALL_DIR) prefix=$(INSTALL_PREFIX)

include ../../mk/spksrc.cross-cc.mk
4 changes: 3 additions & 1 deletion cross/libkmod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ HOMEPAGE = https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/about/
COMMENT = kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases.
LICENSE = LGPL 2.1

GNU_CONFIGURE = 1
PRE_CONFIGURE_TARGET = kmod_pre_configure

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --disable-manpages
ADDITIONAL_CFLAGS = -O

include ../../mk/spksrc.cross-cc.mk

Expand Down
4 changes: 2 additions & 2 deletions cross/libmount/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PKG_VERS = 2.39.3
PKG_VERS_MAJOR = $(word 1,$(subst ., ,$(PKG_VERS))).$(word 2,$(subst ., ,$(PKG_VERS)))
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_REAL_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://www.kernel.org/pub/linux/utils/$(PKG_REAL_NAME)/v$(PKG_VERS_MAJOR)
PKG_DIST_SITE = https://www.kernel.org/pub/linux/utils/util-linux/v$(PKG_VERS_MAJOR)
# use dedicated folder to build independent of other libraries built from util-linux (i.e. libuuid)
PKG_DIR = $(PKG_NAME)/$(PKG_REAL_NAME)-$(PKG_VERS)
EXTRACT_PATH = $(WORK_DIR)/$(PKG_NAME)
Expand All @@ -23,6 +23,6 @@ CONFIGURE_ARGS = --disable-static --without-ncurses --without-python --disable-a
# Create libblkid only
CONFIGURE_ARGS += --disable-all-programs --enable-libmount --enable-libblkid

ADDITIONAL_CFLAGS = -Wno-unused-parameter
ADDITIONAL_CFLAGS = -O -Wno-unused-parameter

include ../../mk/spksrc.cross-cc.mk
2 changes: 2 additions & 0 deletions cross/libpciaccess/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ HOMEPAGE = https://gitlab.freedesktop.org/xorg/lib/libpciaccess
COMMENT = Generic PCI access library.
LICENSE = https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/blob/master/COPYING

ADDITIONAL_CFLAGS = -O

include ../../mk/spksrc.cross-meson.mk
2 changes: 2 additions & 0 deletions cross/libva-latest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ LICENSE = MIT

CONFIGURE_ARGS = -Ddriverdir=$(INSTALL_PREFIX)/lib

ADDITIONAL_CFLAGS = -Os

include ../../mk/spksrc.cross-meson.mk
2 changes: 2 additions & 0 deletions cross/libva-utils-latest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ LICENSE = MIT

UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS)

ADDITIONAL_CFLAGS = -O

include ../../mk/spksrc.cross-meson.mk

0 comments on commit 6e71b1d

Please sign in to comment.