Index: 6.1.26/Makefile
===================================================================
--- 6.1.26/Makefile (nonexistent)
+++ 6.1.26/Makefile (revision 146)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS = $(HARDWARE_REPKA_PI3)
+
+NEED_ABS_PATH = true
+
+COMPONENT_IS_3PP = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/Linux/v6.x
+
+REQUIRES = boot/kernel/repka-pi3/6.1.26
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 6.1.26
+subversion =
+modules_version = 6.1.26
+full_version = $(version)
+tar_xz_archive = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(full_version).tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/usr/src/linux-$(full_version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+config = $(TARGET_DEST_DIR)/bootfs/config
+readme_in = $(CURDIR)/doc/README.in
+
+devel_source_done = $(TARGET_BUILD_DIR)/.devel_source_done
+
+
+PATCHES = PATCHES
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME = kernel-source
+KERNEL_DEV_PKG_VERSION = 6.1.26
+KERNEL_DEV_PKG_ARCH = $(PKGARCH)
+KERNEL_DEV_PKG_DISTRO_NAME = $(DISTRO_NAME)
+KERNEL_DEV_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+KERNEL_DEV_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+KERNEL_DEV_PKG_SHORT_DESCRIPTION = Linux Kernel Source
+KERNEL_DEV_PKG_URL = $(BUG_URL)
+KERNEL_DEV_PKG_LICENSE = GPLv2
+KERNEL_DEV_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-pkg-description
+KERNEL_DEV_PKG_DESCRIPTION_FILE_IN = $(KERNEL_DEV_PKG_NAME)-pkg-description.in
+KERNEL_DEV_PKG_INSTALL_SCRIPT = $(KERNEL_DEV_PKG_NAME)-pkg-install.sh
+
+KERNEL_DEV_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-package
+
+build_kernel_pkg = $(TARGET_BUILD_DIR)/.kernel_pkg_done
+
+pkg_basename = $(KERNEL_DEV_PKG_NAME)-$(KERNEL_DEV_PKG_VERSION)-$(KERNEL_DEV_PKG_ARCH)-$(KERNEL_DEV_PKG_DISTRO_NAME)-$(KERNEL_DEV_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(devel_source_done)
+BUILD_TARGETS += $(build_kernel_pkg)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @touch $@
+
+$(devel_source_done): $(src_done)
+ @cp $(config) $(SRC_DIR)/.config
+ @touch $@
+
+$(build_kernel_pkg): $(devel_source_done)
+ @mkdir -p $(KERNEL_DEV_PKG)/usr/src
+ # ======= Install kernel sources =======
+ @cat $(readme_in) | \
+ sed 's,@KERNEL_SOURCE@,linux-$(full_version),' \
+ > $(KERNEL_DEV_PKG)/usr/src/README.linux-$(full_version)
+ @cp -a $(SRC_DIR) $(KERNEL_DEV_PKG)/usr/src
+ @mkdir -p $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)
+ @( cd $(KERNEL_DEV_PKG)/lib/modules/$(modules_version) ; \
+ ln -sf ../../../usr/src/linux-$(full_version) build ; \
+ ln -sf ../../../usr/src/linux-$(full_version) source ; \
+ )
+ @touch $@
+
+$(KERNEL_DEV_PKG_DESCRIPTION_FILE): $(KERNEL_DEV_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kernel_pkg) $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG_INSTALL_SCRIPT)
+ @cp $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG)/.DESCRIPTION
+ @cp $(KERNEL_DEV_PKG_INSTALL_SCRIPT) $(KERNEL_DEV_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(KERNEL_DEV_PKG)/.REQUIRES
+ @echo "pkgname=$(KERNEL_DEV_PKG_NAME)" > $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "pkgver=$(KERNEL_DEV_PKG_VERSION)" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "arch=$(KERNEL_DEV_PKG_ARCH)" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "distroname=$(KERNEL_DEV_PKG_DISTRO_NAME)" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "distrover=$(KERNEL_DEV_PKG_DISTRO_VERSION)" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "group=$(KERNEL_DEV_PKG_GROUP)" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(KERNEL_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "url=$(KERNEL_DEV_PKG_URL)" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+ echo "license=$(KERNEL_DEV_PKG_LICENSE)" >> $(KERNEL_DEV_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(KERNEL_DEV_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 6.1.26/PATCHES
===================================================================
--- 6.1.26/PATCHES (nonexistent)
+++ 6.1.26/PATCHES (revision 146)
@@ -0,0 +1,5 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.1.26-dwmac-rk.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.1.26-host-limits.patch -p0
+
+../../../../sources/Linux/v6.x/patches/linux-6.1.26-repka-pi3.patch -p0
Index: 6.1.26/doc/README.in
===================================================================
--- 6.1.26/doc/README.in (nonexistent)
+++ 6.1.26/doc/README.in (revision 146)
@@ -0,0 +1,52 @@
+
+How to Build External Modules
+-----------------------------
+
+To build external modules, you must have a prebuilt kernel available that contains
+the configuration and header files used in the build. Also, the kernel must have been
+built with modules enabled.
+
+Radix cross Linux provides a 'kernel-source' package installed here.
+
+This kernel source not ready for build modules out-of-tree because Radix cross Linux
+provides only cross-compiled packages.
+
+To prepare kernel source you have to do following:
+
+ $ cd /usr/src/@KERNEL_SOURCE@
+ $ make oldconfig
+ $ make modules_prepare
+
+ If you are using a Radix cross Linux distribution kernel,
+there will be a 'kernel-source' package for the kernel you are running provided by
+Radix cross Linux distribution.
+
+This will make sure the kernel contains the information required. The target exists
+solely as a simple way to prepare a kernel source tree for building external modules.
+
+NOTE: 'modules_prepare' will not build Module.symvers even if CONFIG_MODVERSIONS is set;
+therefore, a full kernel build needs to be executed to make module versioning work.
+
+
+Command Syntax
+--------------
+
+The command to build an external module is:
+
+ $ make -C <path_to_kernel_src> M=$PWD
+
+The kbuild system knows that an external module is being built due to the 'M=<dir>'
+option given in the command.
+
+To build against the running kernel use:
+
+ $ make -C /lib/modules/`uname -r`/build M=$PWD
+
+Then to install the module(s) just built, add the target 'modules_install' to the command:
+
+ $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
+
+
+For mode details please look at
+ https://www.kernel.org/doc/html/latest/kbuild/modules.html
+page.
Index: 6.1.26/kernel-source-pkg-description.in
===================================================================
--- 6.1.26/kernel-source-pkg-description.in (nonexistent)
+++ 6.1.26/kernel-source-pkg-description.in (revision 146)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+kernel-source: Linux @VERSION@ Kernel Source
+kernel-source:
+kernel-source: Linux kernel source for development and build modules out-of-tree.
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
Index: 6.1.26/kernel-source-pkg-install.sh
===================================================================
--- 6.1.26/kernel-source-pkg-install.sh (nonexistent)
+++ 6.1.26/kernel-source-pkg-install.sh (revision 146)
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ touch -r $NEW ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ install_file $NEW
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 6.1.26/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 6.1.26
===================================================================
--- 6.1.26 (nonexistent)
+++ 6.1.26 (revision 146)
Property changes on: 6.1.26
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~