Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

33
package/opkg/Config.in Normal file
View File

@@ -0,0 +1,33 @@
comment "opkg needs a toolchain w/ wchar"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR
config BR2_PACKAGE_OPKG
bool "opkg"
depends on BR2_USE_MMU # fork()
depends on BR2_USE_WCHAR # libarchive
select BR2_PACKAGE_LIBARCHIVE
help
Opkg is a lightweight package management system, based on
ipkg. It is written in C and resembles apt/dpkg in
operation. It is intended for use on embedded Linux devices.
Opkg is maintained, stable, robust and conservative in its
memory usage, despite its buggy ipkg ancestry. As best it
can, opkg maintains backwards compatibility with ipkg and
conforms to a subset of debian's policy manual regarding
control files.
https://git.yoctoproject.org/opkg/
if BR2_PACKAGE_OPKG
config BR2_PACKAGE_OPKG_GPG_SIGN
bool "gnupg support"
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpg-error
select BR2_PACKAGE_LIBGPGME
select BR2_PACKAGE_LIBGPG_ERROR
help
Enable opkg package signature checking support using
gnupg/libgpgme.
endif

4
package/opkg/opkg.hash Normal file
View File

@@ -0,0 +1,4 @@
# From http://downloads.yoctoproject.org/releases/opkg/SHA256SUMS
sha256 d973fd0f1568f58f87d6aecd9aa95e3e1f60214a45cee26704bf8fe757c54567 opkg-0.7.0.tar.gz
# Locally calculated
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING

81
package/opkg/opkg.mk Normal file
View File

@@ -0,0 +1,81 @@
################################################################################
#
# opkg
#
################################################################################
OPKG_VERSION = 0.7.0
OPKG_SITE = https://downloads.yoctoproject.org/releases/opkg
OPKG_DEPENDENCIES = host-pkgconf libarchive
OPKG_LICENSE = GPL-2.0+
OPKG_LICENSE_FILES = COPYING
OPKG_INSTALL_STAGING = YES
OPKG_CONF_OPTS = \
--enable-sha256 \
--without-acl \
--without-xattr
ifeq ($(BR2_PACKAGE_OPKG_GPG_SIGN),y)
OPKG_CONF_OPTS += --enable-gpg
OPKG_CONF_ENV += \
ac_cv_path_GPGME_CONFIG=$(STAGING_DIR)/usr/bin/gpgme-config \
ac_cv_path_GPGERR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
OPKG_DEPENDENCIES += libgpgme libgpg-error
else
OPKG_CONF_OPTS += --disable-gpg
endif
ifeq ($(BR2_PACKAGE_LIBCURL),y)
OPKG_DEPENDENCIES += libcurl
OPKG_CONF_OPTS += --enable-curl
ifeq ($(BR2_PACKAGE_OPENSSL),y)
OPKG_CONF_OPTS += --enable-ssl-curl
else
OPKG_CONF_OPTS += --disable-ssl-curl
endif
else
OPKG_CONF_OPTS += --disable-curl --disable-ssl-curl
endif
ifeq ($(BR2_PACKAGE_BZIP2),y)
OPKG_DEPENDENCIES += bzip2
OPKG_CONF_OPTS += --enable-bzip2
else
OPKG_CONF_OPTS += --disable-bzip2
endif
ifeq ($(BR2_PACKAGE_LIBSOLV),y)
OPKG_DEPENDENCIES += libsolv
OPKG_CONF_OPTS += --with-libsolv
else
OPKG_CONF_OPTS += --without-libsolv
endif
ifeq ($(BR2_PACKAGE_LZ4),y)
OPKG_DEPENDENCIES += lz4
OPKG_CONF_OPTS += --enable-lz4
else
OPKG_CONF_OPTS += --disable-lz4
endif
ifeq ($(BR2_PACKAGE_XZ),y)
OPKG_DEPENDENCIES += xz
OPKG_CONF_OPTS += --enable-xz
else
OPKG_CONF_OPTS += --disable-xz
endif
ifeq ($(BR2_PACKAGE_ZSTD),y)
OPKG_DEPENDENCIES += zstd
OPKG_CONF_OPTS += --enable-zstd
else
OPKG_CONF_OPTS += --disable-zstd
endif
# Ensure directory for lockfile exists
define OPKG_CREATE_LOCKDIR
mkdir -p $(TARGET_DIR)/usr/lib/opkg
endef
OPKG_POST_INSTALL_TARGET_HOOKS += OPKG_CREATE_LOCKDIR
$(eval $(autotools-package))