Initial Commit
- initial default booting image
This commit is contained in:
19
package/lz4/Config.in
Normal file
19
package/lz4/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_LZ4
|
||||
bool "lz4"
|
||||
help
|
||||
LZ4 is a very fast lossless compression algorithm, providing
|
||||
compression speed at 400 MB/s per core, scalable with
|
||||
multi-cores CPU. It also features an extremely fast decoder,
|
||||
with speed in multiple GB/s per core, typically reaching RAM
|
||||
speed limits on multi-core systems.
|
||||
|
||||
http://www.lz4.org/
|
||||
|
||||
if BR2_PACKAGE_LZ4
|
||||
|
||||
config BR2_PACKAGE_LZ4_PROGS
|
||||
bool "install programs"
|
||||
help
|
||||
lz4, lz4c, unlz4 and lz4cat binaries
|
||||
|
||||
endif
|
||||
4
package/lz4/lz4.hash
Normal file
4
package/lz4/lz4.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# sha256 locally computed
|
||||
sha256 537512904744b35e232912055ccf8ec66d768639ff3abe5788d90d792ec5f48b lz4-1.10.0.tar.gz
|
||||
sha256 8b58c446121a109ccf32edc094bba3010a3d85e4ee3702950db55e4d3e87736c lib/LICENSE
|
||||
sha256 609b910ef05c9c855ecc1da155a36ed0f57514eac452cf93446530b5ea4b3bc3 programs/COPYING
|
||||
58
package/lz4/lz4.mk
Normal file
58
package/lz4/lz4.mk
Normal file
@@ -0,0 +1,58 @@
|
||||
################################################################################
|
||||
#
|
||||
# lz4
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LZ4_VERSION = 1.10.0
|
||||
LZ4_SITE = $(call github,lz4,lz4,v$(LZ4_VERSION))
|
||||
LZ4_INSTALL_STAGING = YES
|
||||
LZ4_LICENSE = BSD-2-Clause (library), GPL-2.0+ (programs)
|
||||
LZ4_LICENSE_FILES = lib/LICENSE programs/COPYING
|
||||
LZ4_CPE_ID_VALID = YES
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LZ4_MAKE_OPTS += BUILD_SHARED=no
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
LZ4_MAKE_OPTS += BUILD_STATIC=no
|
||||
endif
|
||||
|
||||
define HOST_LZ4_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) lib
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) lz4
|
||||
endef
|
||||
|
||||
define HOST_LZ4_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) PREFIX=$(HOST_DIR) \
|
||||
install -C $(@D)
|
||||
endef
|
||||
|
||||
LZ4_DIRS = lib
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4_PROGS),y)
|
||||
LZ4_DIRS += programs
|
||||
endif
|
||||
|
||||
define LZ4_BUILD_CMDS
|
||||
$(foreach dir,$(LZ4_DIRS),\
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(LZ4_MAKE_OPTS) \
|
||||
-C $(@D)/$(dir)
|
||||
)
|
||||
endef
|
||||
|
||||
define LZ4_INSTALL_STAGING_CMDS
|
||||
$(foreach dir,$(LZ4_DIRS),\
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(STAGING_DIR) \
|
||||
PREFIX=/usr $(LZ4_MAKE_OPTS) -C $(@D)/$(dir) install
|
||||
)
|
||||
endef
|
||||
|
||||
define LZ4_INSTALL_TARGET_CMDS
|
||||
$(foreach dir,$(LZ4_DIRS),\
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) \
|
||||
PREFIX=/usr $(LZ4_MAKE_OPTS) -C $(@D)/$(dir) install
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user