initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,45 @@
From 1eed2b65eff4c66b80eab0ec46c6705de19bdb9d Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Thu, 21 Jan 2016 23:54:03 +0100
Subject: [PATCH] build: use pkg-config to discover libusb
This allows to remove hardcoded paths to libusb headers.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Makefile.am | 4 ++--
configure.in | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 73fed2e..3a4e899 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -92,8 +92,8 @@ libhpmud_la_SOURCES += io/hpmud/musb_libusb01.c
libhpmud_la_LDFLAGS += -lusb
else
libhpmud_la_SOURCES += io/hpmud/musb.c
-libhpmud_la_CFLAGS += -I/usr/include/libusb-1.0
-libhpmud_la_LDFLAGS += -lusb-1.0
+libhpmud_la_CFLAGS += $(LIBUSB_CFLAGS)
+libhpmud_la_LDFLAGS += $(LIBUSB_LIBS)
endif
if NETWORK_BUILD
diff --git a/configure.in b/configure.in
index 3706645..8b06428 100755
--- a/configure.in
+++ b/configure.in
@@ -542,8 +542,7 @@ if test "$hpijs_only_build" = "no" && test "$hpcups_only_build" = "no"; then
AC_CHECK_LIB([usb], [usb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb support], 2)])
AC_CHECK_HEADERS(usb.h, ,[AC_MSG_ERROR([cannot find libusb-devel support], 11)])
else
- AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb 1.0 support], 2)])
- AC_CHECK_HEADERS(libusb-1.0/libusb.h, ,[AC_MSG_ERROR([cannot find libusb-1.0-devel support], 11)])
+ PKG_CHECK_MODULES([LIBUSB], [libusb-1.0])
fi
fi
--
2.6.4
@@ -0,0 +1,35 @@
From a2de7e834417de68db10dc6f09d5810b06e6cbc8 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Thu, 21 Jan 2016 23:54:50 +0100
Subject: [PATCH] configure.in: fix AM_INIT_AUTOMAKE call
Uncomment the appropriate call to AM_INIT_AUTOMAKE so that the
"foreign" option is passed, which avoids the need for creating various
unneeded files when autoreconfiguring.
Add the subdir-objects options since the main Makefile.am references
files in subdirectories. This allows to silence a huge amount of
warning when autoreconfiguring.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
configure.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index 8b06428..680cad5 100755
--- a/configure.in
+++ b/configure.in
@@ -27,8 +27,7 @@
#AC_PREREQ(2.59)
AC_INIT([HP Linux Imaging and Printing], [3.17.10], [3.17.10], [hplip])
-#AM_INIT_AUTOMAKE([1.9 foreign])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([1.9 foreign subdir-objects])
AC_DISABLE_STATIC
# Checks for programs.
--
2.6.4
+24
View File
@@ -0,0 +1,24 @@
config BR2_PACKAGE_HPLIP
bool "hplip"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_PACKAGE_CUPS
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
depends on !BR2_STATIC_LIBS # libdl
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_JPEG
help
HP Linux Imaging and Printing (HPLIP)
HPLIP is an HP-developed solution for printing, scanning, and
faxing with HP inkjet and laser based printers in Linux. The
HPLIP project provides printing support for 2,211 printer
models, including Deskjet, Officejet, Photosmart, PSC
(Print Scan Copy), Business Inkjet, LaserJet, Edgeline MFP,
and LaserJet MFP.
http://hplipopensource.com/
comment "hplip needs a toolchain w/ C++, threads, dynamic library, gcc >= 4.9"
depends on BR2_PACKAGE_CUPS
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+3
View File
@@ -0,0 +1,3 @@
# Locally computed:
sha256 0f7344174672f63a98a22f3c109005b6eb89fe738b7d466316bf2c53d083476c hplip-3.17.10.tar.gz
sha256 8af0e85fc6b88aec25200bcb4f604d886818482bd2c5cc81038f4c6a311c913a COPYING
+48
View File
@@ -0,0 +1,48 @@
################################################################################
#
# hplip
#
################################################################################
HPLIP_VERSION = 3.17.10
HPLIP_SITE = http://downloads.sourceforge.net/hplip/hplip
HPLIP_AUTORECONF = YES
HPLIP_DEPENDENCIES = cups libusb jpeg host-pkgconf
HPLIP_LICENSE = GPL-2.0, BSD-3-Clause, MIT
HPLIP_LICENSE_FILES = COPYING
HPLIP_CPE_ID_VENDOR = hp
HPLIP_CPE_ID_PRODUCT = linux_imaging_and_printing_project
HPLIP_CONF_OPTS = \
--disable-qt4 \
--disable-scan-build \
--disable-gui-build \
--disable-doc-build \
--disable-network-build \
--enable-hpcups-install \
--disable-hpijs-install \
--enable-cups-ppd-install \
--enable-cups-drv-install \
--disable-foomatic-ppd-install \
--disable-foomatic-drv-install \
--disable-foomatic-rip-hplip-install \
--enable-new-hpcups \
--enable-lite-build
# build system does not support cups-config
HPLIP_CONF_ENV = LIBS=`$(STAGING_DIR)/usr/bin/cups-config --libs`
ifeq ($(BR2_PACKAGE_DBUS),y)
HPLIP_CONF_OPTS += --enable-dbus-build
HPLIP_DEPENDENCIES += dbus
else
HPLIP_CONF_OPTS += --disable-dbus-build
endif
define HPLIP_POST_INSTALL_TARGET_FIXUP
mkdir -p $(TARGET_DIR)/usr/share/hplip/data/models
cp $(@D)/data/models/* $(TARGET_DIR)/usr/share/hplip/data/models
endef
HPLIP_POST_INSTALL_TARGET_HOOKS += HPLIP_POST_INSTALL_TARGET_FIXUP
$(eval $(autotools-package))