mmc-utils: update to latest upstream revision
This also requires updating our patch for fortify-ing. We now also pass the version as define during compilation. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
parent
6b3da46777
commit
51a7d7850d
|
@ -12,9 +12,9 @@ PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
||||||
PKG_SOURCE_DATE:=2023-01-16
|
PKG_SOURCE_DATE:=2023-09-26
|
||||||
PKG_SOURCE_VERSION:=d4c2910981ff99b983734426dfa99632fb81ac6b
|
PKG_SOURCE_VERSION:=80271e9a6fd0db9cb3a85d024664da886e94315c
|
||||||
PKG_MIRROR_HASH:=b124409d3482db1e63822a7860b7e4a0dfe6c3545da967283979fe805a287893
|
PKG_MIRROR_HASH:=317cacbacfbc8a9d4afb978e4c5a601cf489a514604534168971dd20311d9d12
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
PKG_LICENSE_FILES:=
|
PKG_LICENSE_FILES:=
|
||||||
|
@ -40,7 +40,8 @@ endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" \
|
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 \
|
||||||
|
-UVERSION -DVERSION=\\\"$(shell echo $(PKG_SOURCE_VERSION) | cut -c -6)\\\"" \
|
||||||
mmc
|
mmc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -1,5 +1,5 @@
|
@@ -1,6 +1,6 @@
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
-AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
|
GIT_VERSION := "$(shell git describe --abbrev=6 --always --tags)"
|
||||||
+AM_CFLAGS = -D_FILE_OFFSET_BITS=64
|
-AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 \
|
||||||
|
+AM_CFLAGS = -D_FILE_OFFSET_BITS=64 \
|
||||||
|
-DVERSION=\"$(GIT_VERSION)\"
|
||||||
CFLAGS ?= -g -O2
|
CFLAGS ?= -g -O2
|
||||||
objects = \
|
objects = \
|
||||||
mmc.o \
|
|
||||||
|
|
Loading…
Reference in New Issue