summaryrefslogtreecommitdiffstats
path: root/bsp/meta-sancloud/conf
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/meta-sancloud/conf')
-rw-r--r--bsp/meta-sancloud/conf/include/sancloud-enable-archiver.inc8
-rw-r--r--bsp/meta-sancloud/conf/include/sancloud-mirrors.inc14
-rw-r--r--bsp/meta-sancloud/conf/include/sancloud-sstate-arago.inc2
-rw-r--r--bsp/meta-sancloud/conf/include/sancloud-sstate-poky.inc2
-rw-r--r--bsp/meta-sancloud/conf/layer.conf7
-rw-r--r--bsp/meta-sancloud/conf/machine/bbe.conf44
-rw-r--r--bsp/meta-sancloud/conf/machine/include/bbe-kernel-lts.inc2
-rw-r--r--bsp/meta-sancloud/conf/machine/include/bbe-kernel-mainline.inc3
-rw-r--r--bsp/meta-sancloud/conf/machine/include/bbe-kernel-stable.inc7
-rw-r--r--bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti-rt.inc5
-rw-r--r--bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti.inc5
11 files changed, 82 insertions, 17 deletions
diff --git a/bsp/meta-sancloud/conf/include/sancloud-enable-archiver.inc b/bsp/meta-sancloud/conf/include/sancloud-enable-archiver.inc
new file mode 100644
index 00000000..b608d15f
--- /dev/null
+++ b/bsp/meta-sancloud/conf/include/sancloud-enable-archiver.inc
@@ -0,0 +1,8 @@
+INHERIT += "archiver"
+BB_GENERATE_MIRROR_TARBALLS = "1"
+BB_GENERATE_SHALLOW_TARBALLS = "1"
+BB_GIT_SHALLOW = "1"
+ARCHIVER_MODE[src] = "mirror"
+ARCHIVER_MODE[mirror] = "combined"
+ARCHIVER_MIRROR_EXCLUDE = "file://"
+COPYLEFT_LICENSE_INCLUDE = "*"
diff --git a/bsp/meta-sancloud/conf/include/sancloud-mirrors.inc b/bsp/meta-sancloud/conf/include/sancloud-mirrors.inc
new file mode 100644
index 00000000..4c08462c
--- /dev/null
+++ b/bsp/meta-sancloud/conf/include/sancloud-mirrors.inc
@@ -0,0 +1,14 @@
+PREMIRRORS ??= "\
+bzr://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+cvs://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+git://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+gitsm://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+hg://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+osc://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+p4://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+svn://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n"
+
+MIRRORS =+ "\
+ftp://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+http://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n \
+https://.*/.* https://cdn.sancloud.info/file/sc-yocto/mirror/ \n"
diff --git a/bsp/meta-sancloud/conf/include/sancloud-sstate-arago.inc b/bsp/meta-sancloud/conf/include/sancloud-sstate-arago.inc
new file mode 100644
index 00000000..21dcf593
--- /dev/null
+++ b/bsp/meta-sancloud/conf/include/sancloud-sstate-arago.inc
@@ -0,0 +1,2 @@
+SSTATE_MIRRORS =+ "\
+file://.* https://cdn.sancloud.info/file/sc-yocto/arago/sstate/PATH \n"
diff --git a/bsp/meta-sancloud/conf/include/sancloud-sstate-poky.inc b/bsp/meta-sancloud/conf/include/sancloud-sstate-poky.inc
new file mode 100644
index 00000000..8f2c7d26
--- /dev/null
+++ b/bsp/meta-sancloud/conf/include/sancloud-sstate-poky.inc
@@ -0,0 +1,2 @@
+SSTATE_MIRRORS =+ "\
+file://.* https://cdn.sancloud.info/file/sc-yocto/poky/sstate/PATH \n"
diff --git a/bsp/meta-sancloud/conf/layer.conf b/bsp/meta-sancloud/conf/layer.conf
index 195a6e27..118b9d8c 100644
--- a/bsp/meta-sancloud/conf/layer.conf
+++ b/bsp/meta-sancloud/conf/layer.conf
@@ -9,9 +9,14 @@ BBFILE_COLLECTIONS += "meta-sancloud"
BBFILE_PATTERN_meta-sancloud := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-sancloud = "9"
-LAYERSERIES_COMPAT_meta-sancloud = "thud"
+LAYERSERIES_COMPAT_meta-sancloud = "dunfell"
LAYERDEPENDS_meta-sancloud = " \
core \
meta-ti \
rtlwifi \
"
+
+BBFILES_DYNAMIC += " \
+ meta-arago-distro:${LAYERDIR}/dynamic-layers/meta-arago-distro/*/*/*.bbappend \
+ meta-kernel:${LAYERDIR}/dynamic-layers/meta-kernel/*/*/*.bbappend \
+ "
diff --git a/bsp/meta-sancloud/conf/machine/bbe.conf b/bsp/meta-sancloud/conf/machine/bbe.conf
index cc58b098..da9e1026 100644
--- a/bsp/meta-sancloud/conf/machine/bbe.conf
+++ b/bsp/meta-sancloud/conf/machine/bbe.conf
@@ -2,35 +2,47 @@
#@NAME: SanCloud BeagleBone Enhanced Development Board
#@DESCRIPTION: Machine configuration for the BeagleBone Enhanced http://www.sancloud.co.uk/?page_id=254 Board
+################################################################################
+# Basic machine config
+
MACHINEOVERRIDES =. "beaglebone:"
+
+IMAGE_FSTYPES += "wic.bmap"
+WKS_FILE ?= "sancloud_bbe.wks"
+
require conf/machine/include/ti33x.inc
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "u-boot-script-bbe"
+
MACHINE_EXTRA_RDEPENDS += " \
kernel-modules linux-firmware-rtl8723 usbutils \
- iw crda rtl8723bu kernel-module-8723bu \
+ iw wireless-regdb-static rtl8723bu kernel-module-8723bu \
"
-ARAGO_IMAGE_EXTRA_INSTALL += "packagegroup-base"
+SERIAL_CONSOLE = "115200 ttyS0"
-EXTRA_IMAGEDEPENDS += "u-boot-bbe"
+################################################################################
+# U-boot
-IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
-WKS_FILE ?= "sancloud_bbe.wks"
-do_image_wic[depends] += "u-boot-bbe:do_build"
+PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
-SERIAL_CONSOLE = "115200 ttyS0"
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "img"
+UBOOT_MACHINE = "am335x_evm_config"
+
+EXTRA_IMAGEDEPENDS += "u-boot"
-BBE_RT_KERNEL ??= "0"
-PREFERRED_PROVIDER_virtual/kernel_bbe = '${@oe.utils.conditional("BBE_RT_KERNEL","1","linux-bbe-rt","linux-bbe",d)}'
-PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bbe"
-PREFERRED_PROVIDER_u-boot = "u-boot-bbe"
+################################################################################
+# Kernel
KERNEL_DEVICETREE = " \
am335x-sancloud-bbe.dtb \
- am335x-sancloud-bbei-wifi.dtb \
- am335x-sancloud-bbe-icu4.dtb \
"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
-SPL_BINARY = "MLO"
-UBOOT_SUFFIX = "img"
-UBOOT_MACHINE = "am335x_evm_config"
+BBE_KERNEL_PROVIDER ??= "ti"
+require conf/machine/include/bbe-kernel-${BBE_KERNEL_PROVIDER}.inc
+
+################################################################################
+# Arago distro support
+
+ARAGO_IMAGE_EXTRA_INSTALL += "packagegroup-base"
diff --git a/bsp/meta-sancloud/conf/machine/include/bbe-kernel-lts.inc b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-lts.inc
new file mode 100644
index 00000000..48e624d5
--- /dev/null
+++ b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-lts.inc
@@ -0,0 +1,2 @@
+require conf/machine/include/bbe-kernel-stable.inc
+PREFERRED_VERSION_linux-stable = "5.4%"
diff --git a/bsp/meta-sancloud/conf/machine/include/bbe-kernel-mainline.inc b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-mainline.inc
new file mode 100644
index 00000000..983626e9
--- /dev/null
+++ b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-mainline.inc
@@ -0,0 +1,3 @@
+PREFERRED_PROVIDER_virtual/kernel_bbe = "linux-mainline"
+KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} CC="${KERNEL_CC}" LD="${KERNEL_LD}" O=${B} multi_v7_defconfig"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
diff --git a/bsp/meta-sancloud/conf/machine/include/bbe-kernel-stable.inc b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-stable.inc
new file mode 100644
index 00000000..610e2ee2
--- /dev/null
+++ b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-stable.inc
@@ -0,0 +1,7 @@
+PREFERRED_PROVIDER_virtual/kernel_bbe = "linux-stable"
+KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} CC="${KERNEL_CC}" LD="${KERNEL_LD}" O=${B} multi_v7_defconfig"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
+KERNEL_DEVICETREE += " \
+ am335x-sancloud-bbei-wifi.dtb \
+ am335x-sancloud-bbe-icu4.dtb \
+ "
diff --git a/bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti-rt.inc b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti-rt.inc
new file mode 100644
index 00000000..26876dd9
--- /dev/null
+++ b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti-rt.inc
@@ -0,0 +1,5 @@
+PREFERRED_PROVIDER_virtual/kernel_bbe = "linux-bbe-rt"
+KERNEL_DEVICETREE += " \
+ am335x-sancloud-bbei-wifi.dtb \
+ am335x-sancloud-bbe-icu4.dtb \
+ "
diff --git a/bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti.inc b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti.inc
new file mode 100644
index 00000000..49f3102a
--- /dev/null
+++ b/bsp/meta-sancloud/conf/machine/include/bbe-kernel-ti.inc
@@ -0,0 +1,5 @@
+PREFERRED_PROVIDER_virtual/kernel_bbe = "linux-bbe"
+KERNEL_DEVICETREE += " \
+ am335x-sancloud-bbei-wifi.dtb \
+ am335x-sancloud-bbe-icu4.dtb \
+ "