initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_DDRESCUE
|
||||
bool "ddrescue"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
GNU ddrescue is a data recovery tool. It copies data from one
|
||||
file or block device (hard disc, cdrom, etc) to another,
|
||||
trying to rescue the good parts first in case of read errors.
|
||||
|
||||
http://www.gnu.org/software/ddrescue/ddrescue.html
|
||||
|
||||
comment "ddrescue needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://lists.gnu.org/archive/html/info-gnu/2020-03/msg00002.html
|
||||
sha256 ce538ebd26a09f45da67d3ad3f7431932428231ceec7a2d255f716fa231a1063 ddrescue-1.25.tar.lz
|
||||
# Locally computed
|
||||
sha256 3d77c1a58fbde5ddba612d1fe09965e20a3804953eca12e8c1892298bb8a5eef COPYING
|
||||
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# ddrescue
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DDRESCUE_VERSION = 1.25
|
||||
DDRESCUE_SOURCE = ddrescue-$(DDRESCUE_VERSION).tar.lz
|
||||
DDRESCUE_SITE = http://download.savannah.gnu.org/releases/ddrescue
|
||||
DDRESCUE_LICENSE = GPL-2.0+
|
||||
DDRESCUE_LICENSE_FILES = COPYING
|
||||
|
||||
define DDRESCUE_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_MAKE_ENV) ./configure \
|
||||
--prefix=/usr \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
DDRESCUE_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
DDRESCUE_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
define DDRESCUE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) CXXFLAGS="$(DDRESCUE_CXXFLAGS)" -C $(@D)
|
||||
endef
|
||||
|
||||
define DDRESCUE_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user