Initial Commit
- initial default booting image
This commit is contained in:
14
package/zerofree/Config.in
Normal file
14
package/zerofree/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_ZEROFREE
|
||||
bool "zerofree"
|
||||
depends on BR2_USE_MMU # e2fsprogs
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_E2FSPROGS
|
||||
help
|
||||
zerofree is a utility which scans the free blocks in an ext2
|
||||
filesystem and fills any non-zero blocks with zeroes.
|
||||
|
||||
https://frippery.org/uml/
|
||||
|
||||
comment "zerofree needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
3
package/zerofree/zerofree.hash
Normal file
3
package/zerofree/zerofree.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867 zerofree-1.1.1.tgz
|
||||
sha256 90daae00475a992a367da5b0658469a5d1c4449dbbe964c5b7246e1aec92f491 COPYING
|
||||
28
package/zerofree/zerofree.mk
Normal file
28
package/zerofree/zerofree.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# zerofree
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ZEROFREE_VERSION = 1.1.1
|
||||
ZEROFREE_SOURCE = zerofree-$(ZEROFREE_VERSION).tgz
|
||||
ZEROFREE_SITE = https://frippery.org/uml
|
||||
ZEROFREE_LICENSE = GPL-2.0
|
||||
ZEROFREE_LICENSE_FILES = COPYING
|
||||
ZEROFREE_DEPENDENCIES = e2fsprogs
|
||||
|
||||
# We use the same workaround as in https://bugs.gentoo.org/716136
|
||||
# to build with musl.
|
||||
ZEROFREE_CFLAGS = \
|
||||
$(TARGET_CFLAGS) \
|
||||
$(if $(BR2_TOOLCHAIN_USES_MUSL),-DHAVE_SYS_TYPES_H)
|
||||
|
||||
define ZEROFREE_BUILD_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(ZEROFREE_CFLAGS)" -C $(@D)
|
||||
endef
|
||||
|
||||
define ZEROFREE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/zerofree $(TARGET_DIR)/usr/bin/zerofree
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user