Initial Commit
- initial default booting image
This commit is contained in:
21
package/mmc-utils/Config.in
Normal file
21
package/mmc-utils/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_MMC_UTILS
|
||||
bool "mmc-utils"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||
help
|
||||
MMC utils
|
||||
|
||||
https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
||||
|
||||
if BR2_PACKAGE_MMC_UTILS
|
||||
|
||||
config BR2_PACKAGE_MMC_UTILS_ENABLE_DANGEROUS_COMMANDS
|
||||
bool "Enable dangerous commands"
|
||||
help
|
||||
Enable support for dangerous commands in mmc-utils. mmc-utils
|
||||
considers turning on permanent write protection on a device a
|
||||
"dangerous command" and doesn't offer it by default.
|
||||
|
||||
endif
|
||||
|
||||
comment "mmc-utils needs a toolchain w/ headers >= 4.4"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||
3
package/mmc-utils/mmc-utils.hash
Normal file
3
package/mmc-utils/mmc-utils.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 39e6a89e06b53f99816f110af6743d1adc82220b26c51b0c3fd0a11ccf4206c2 mmc-utils-1.0.tar.gz
|
||||
sha256 49cd65f67b516078ff7e0dbe639972dad21ed3858246e3969fc8a8fc2a4dca66 README
|
||||
36
package/mmc-utils/mmc-utils.mk
Normal file
36
package/mmc-utils/mmc-utils.mk
Normal file
@@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
#
|
||||
# mmc-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MMC_UTILS_VERSION = 1.0
|
||||
MMC_UTILS_SITE = https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot
|
||||
MMC_UTILS_LICENSE = GPL-2.0
|
||||
MMC_UTILS_LICENSE_FILES = README
|
||||
|
||||
MMC_UTILS_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MMC_UTILS_ENABLE_DANGEROUS_COMMANDS),y)
|
||||
MMC_UTILS_CFLAGS += -DDANGEROUS_COMMANDS_ENABLED
|
||||
endif
|
||||
|
||||
# override AM_CFLAGS as the project Makefile uses it to pass
|
||||
# -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2, and the latter conflicts
|
||||
# with the _FORTIFY_SOURCE that we pass when hardening options are
|
||||
# enabled. Starting from commit:
|
||||
# https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/commit/?id=958227890690290ee766aaad1b92f3413f67048c
|
||||
# they use AM_CFLAGS to set VERSION to first 6 digit of git SHA1, so
|
||||
# let's do this here otherwise it won't be automatically set and build
|
||||
# will fail
|
||||
define MMC_UTILS_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) C=0 \
|
||||
CFLAGS="$(MMC_UTILS_CFLAGS)" \
|
||||
AM_CFLAGS='-DVERSION=\"$(shell echo $(MMC_UTILS_VERSION) | head -c 6)\"'
|
||||
endef
|
||||
|
||||
define MMC_UTILS_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user