Initial Commit
- initial default booting image
This commit is contained in:
7
package/xxhash/Config.in
Normal file
7
package/xxhash/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_XXHASH
|
||||
bool "xxhash"
|
||||
help
|
||||
xxHash is an extremely fast hash algorithm, running at RAM
|
||||
speed limits.
|
||||
|
||||
https://github.com/Cyan4973/xxHash
|
||||
4
package/xxhash/xxhash.hash
Normal file
4
package/xxhash/xxhash.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# locally computed
|
||||
sha256 aae608dfe8213dfd05d909a57718ef82f30722c392344583d3f39050c7f29a80 xxhash-0.8.3.tar.gz
|
||||
sha256 6ffedbc0f7878612d2b23589f1ff2ab15633e1df7963a5d9fc750ec5500c7e7a LICENSE
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 cli/COPYING
|
||||
60
package/xxhash/xxhash.mk
Normal file
60
package/xxhash/xxhash.mk
Normal file
@@ -0,0 +1,60 @@
|
||||
################################################################################
|
||||
#
|
||||
# xxhash
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XXHASH_VERSION = 0.8.3
|
||||
XXHASH_SITE = $(call github,Cyan4973,xxHash,v$(XXHASH_VERSION))
|
||||
XXHASH_LICENSE = BSD-2-Clause (library), GPL-2.0+ (xxhsum)
|
||||
XXHASH_LICENSE_FILES = LICENSE cli/COPYING
|
||||
XXHASH_INSTALL_STAGING = YES
|
||||
|
||||
# The package is a dependency to ccache so ccache cannot be a dependency
|
||||
HOST_XXHASH_ADD_CCACHE_DEPENDENCY = NO
|
||||
|
||||
XXHASH_TARGETS = xxhsum libxxhash.pc
|
||||
XXHASH_INSTALL_TARGETS = \
|
||||
install_libxxhash.includes \
|
||||
install_libxxhash.pc \
|
||||
install_xxhsum
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
||||
XXHASH_TARGETS += libxxhash.a
|
||||
XXHASH_INSTALL_TARGETS += install_libxxhash.a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
||||
XXHASH_TARGETS += libxxhash
|
||||
XXHASH_INSTALL_TARGETS += install_libxxhash
|
||||
endif
|
||||
|
||||
define XXHASH_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
MOREFLAGS=-DXXH_NO_INLINE_HINTS $(XXHASH_TARGETS)
|
||||
endef
|
||||
|
||||
define XXHASH_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
PREFIX=/usr DESTDIR=$(STAGING_DIR) $(XXHASH_INSTALL_TARGETS)
|
||||
endef
|
||||
|
||||
define XXHASH_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
PREFIX=/usr DESTDIR=$(TARGET_DIR) $(XXHASH_INSTALL_TARGETS)
|
||||
endef
|
||||
|
||||
# we are a ccache dependency, so we can't use ccache
|
||||
HOST_XXHASH_ENV = $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) CC="$(HOSTCC_NOCCACHE)" CXX="$(HOSTCXX_NOCCACHE)"
|
||||
HOST_XXHASH_OPTS += DESTDIR=$(HOST_DIR) PREFIX=/usr
|
||||
|
||||
define HOST_XXHASH_BUILD_CMDS
|
||||
$(HOST_XXHASH_ENV) $(MAKE) $(HOST_XXHASH_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_XXHASH_INSTALL_CMDS
|
||||
$(HOST_XXHASH_ENV) $(MAKE) $(HOST_XXHASH_OPTS) -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user