Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

383 Commits   1 Branch   1 Tag
Index: baikal-m1/5.4.211-5.7.226/Makefile
===================================================================
--- baikal-m1/5.4.211-5.7.226/Makefile	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_M1)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/Baikal/M1000
+
+REQUIRES           = boot/kernel/baikal-m1/5.4.211-5.7.226
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.211-5.7.226
+subversion         =
+modules_version    = 5.4.211
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/Baikal/M1000/linux-m1-$(full_version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/usr/src/linux-m1-$(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_M1000_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 5.4.211
+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-m1-$(full_version),' \
+	     > $(KERNEL_DEV_PKG)/usr/src/README.linux-m1-$(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-m1-$(full_version) build  ; \
+	   ln -sf ../../../usr/src/linux-m1-$(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: baikal-m1/5.4.211-5.7.226/PATCHES
===================================================================
--- baikal-m1/5.4.211-5.7.226/PATCHES	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../../sources/Linux/Baikal/M1000/patches/linux-m1-5.4.211-5.7.226-host-limits.patch -p0
Index: baikal-m1/5.4.211-5.7.226/doc/README.in
===================================================================
--- baikal-m1/5.4.211-5.7.226/doc/README.in	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226/doc/README.in	(revision 5)
@@ -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: baikal-m1/5.4.211-5.7.226/doc
===================================================================
--- baikal-m1/5.4.211-5.7.226/doc	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226/doc	(revision 5)

Property changes on: baikal-m1/5.4.211-5.7.226/doc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: baikal-m1/5.4.211-5.7.226/kernel-source-pkg-description.in
===================================================================
--- baikal-m1/5.4.211-5.7.226/kernel-source-pkg-description.in	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226/kernel-source-pkg-description.in	(revision 5)
@@ -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: baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh
===================================================================
--- baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh	(revision 5)
@@ -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: baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: baikal-m1/5.4.211-5.7.226
===================================================================
--- baikal-m1/5.4.211-5.7.226	(nonexistent)
+++ baikal-m1/5.4.211-5.7.226	(revision 5)

Property changes on: baikal-m1/5.4.211-5.7.226
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: baikal-m1
===================================================================
--- baikal-m1	(nonexistent)
+++ baikal-m1	(revision 5)

Property changes on: baikal-m1
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2/6.0.7/Makefile
===================================================================
--- ebox-3350dx2/6.0.7/Makefile	(nonexistent)
+++ ebox-3350dx2/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_EBOX_3350DX2)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/ebox-3350dx2/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+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_I586_GLIBC)),)
+ARCH = i386
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+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: ebox-3350dx2/6.0.7/PATCHES
===================================================================
--- ebox-3350dx2/6.0.7/PATCHES	(nonexistent)
+++ ebox-3350dx2/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch  -p0
Index: ebox-3350dx2/6.0.7/doc/README.in
===================================================================
--- ebox-3350dx2/6.0.7/doc/README.in	(nonexistent)
+++ ebox-3350dx2/6.0.7/doc/README.in	(revision 5)
@@ -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: ebox-3350dx2/6.0.7/doc
===================================================================
--- ebox-3350dx2/6.0.7/doc	(nonexistent)
+++ ebox-3350dx2/6.0.7/doc	(revision 5)

Property changes on: ebox-3350dx2/6.0.7/doc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2/6.0.7/kernel-source-pkg-description.in
===================================================================
--- ebox-3350dx2/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ ebox-3350dx2/6.0.7/kernel-source-pkg-description.in	(revision 5)
@@ -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: ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -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: ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ebox-3350dx2/6.0.7
===================================================================
--- ebox-3350dx2/6.0.7	(nonexistent)
+++ ebox-3350dx2/6.0.7	(revision 5)

Property changes on: ebox-3350dx2/6.0.7
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2
===================================================================
--- ebox-3350dx2	(nonexistent)
+++ ebox-3350dx2	(revision 5)

Property changes on: ebox-3350dx2
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32/6.0.7/Makefile
===================================================================
--- intel-pc32/6.0.7/Makefile	(nonexistent)
+++ intel-pc32/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/intel-pc32/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+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_I686_GLIBC)),)
+ARCH = i386
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+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: intel-pc32/6.0.7/PATCHES
===================================================================
--- intel-pc32/6.0.7/PATCHES	(nonexistent)
+++ intel-pc32/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch  -p0
Index: intel-pc32/6.0.7/doc/README.in
===================================================================
--- intel-pc32/6.0.7/doc/README.in	(nonexistent)
+++ intel-pc32/6.0.7/doc/README.in	(revision 5)
@@ -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: intel-pc32/6.0.7/doc
===================================================================
--- intel-pc32/6.0.7/doc	(nonexistent)
+++ intel-pc32/6.0.7/doc	(revision 5)

Property changes on: intel-pc32/6.0.7/doc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32/6.0.7/kernel-source-pkg-description.in
===================================================================
--- intel-pc32/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ intel-pc32/6.0.7/kernel-source-pkg-description.in	(revision 5)
@@ -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: intel-pc32/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- intel-pc32/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ intel-pc32/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -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: intel-pc32/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: intel-pc32/6.0.7
===================================================================
--- intel-pc32/6.0.7	(nonexistent)
+++ intel-pc32/6.0.7	(revision 5)

Property changes on: intel-pc32/6.0.7
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32
===================================================================
--- intel-pc32	(nonexistent)
+++ intel-pc32	(revision 5)

Property changes on: intel-pc32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc64/6.0.7/Makefile
===================================================================
--- intel-pc64/6.0.7/Makefile	(nonexistent)
+++ intel-pc64/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/intel-pc64/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+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_X86_64_GLIBC)),)
+ARCH = x86_64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+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: intel-pc64/6.0.7/PATCHES
===================================================================
--- intel-pc64/6.0.7/PATCHES	(nonexistent)
+++ intel-pc64/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch  -p0
Index: intel-pc64/6.0.7/doc/README.in
===================================================================
--- intel-pc64/6.0.7/doc/README.in	(nonexistent)
+++ intel-pc64/6.0.7/doc/README.in	(revision 5)
@@ -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: intel-pc64/6.0.7/doc
===================================================================
--- intel-pc64/6.0.7/doc	(nonexistent)
+++ intel-pc64/6.0.7/doc	(revision 5)

Property changes on: intel-pc64/6.0.7/doc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc64/6.0.7/kernel-source-pkg-description.in
===================================================================
--- intel-pc64/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ intel-pc64/6.0.7/kernel-source-pkg-description.in	(revision 5)
@@ -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: intel-pc64/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- intel-pc64/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ intel-pc64/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -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: intel-pc64/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: intel-pc64/6.0.7
===================================================================
--- intel-pc64/6.0.7	(nonexistent)
+++ intel-pc64/6.0.7	(revision 5)

Property changes on: intel-pc64/6.0.7
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc64
===================================================================
--- intel-pc64	(nonexistent)
+++ intel-pc64	(revision 5)

Property changes on: intel-pc64
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: leez-p710/6.0.7/Makefile
===================================================================
--- leez-p710/6.0.7/Makefile	(nonexistent)
+++ leez-p710/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_LEEZ_P710)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/leez-p710/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+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_RK339X_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.0.7
+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: leez-p710/6.0.7/PATCHES
===================================================================
--- leez-p710/6.0.7/PATCHES	(nonexistent)
+++ leez-p710/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,5 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch  -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch   -p0
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-leez-p710-spi.patch -p0
Index: leez-p710/6.0.7/doc/README.in
===================================================================
--- leez-p710/6.0.7/doc/README.in	(nonexistent)
+++ leez-p710/6.0.7/doc/README.in	(revision 5)
@@ -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: leez-p710/6.0.7/doc
===================================================================
--- leez-p710/6.0.7/doc	(nonexistent)
+++ leez-p710/6.0.7/doc	(revision 5)

Property changes on: leez-p710/6.0.7/doc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: leez-p710/6.0.7/kernel-source-pkg-description.in
===================================================================
--- leez-p710/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ leez-p710/6.0.7/kernel-source-pkg-description.in	(revision 5)
@@ -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: leez-p710/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- leez-p710/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ leez-p710/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -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: leez-p710/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: leez-p710/6.0.7
===================================================================
--- leez-p710/6.0.7	(nonexistent)
+++ leez-p710/6.0.7	(revision 5)

Property changes on: leez-p710/6.0.7
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: leez-p710
===================================================================
--- leez-p710	(nonexistent)
+++ leez-p710	(revision 5)

Property changes on: leez-p710
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~