aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/conf
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-09-14 09:21:52 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-09-14 09:21:52 +0300
commit289fbd4f83543451323d6ce275fad1b5a85b61f1 (patch)
tree02310521c3426cad6b9c9f7321a26509d47044c4 /meta-rcar-gen3-adas/conf
Initial commit for ADAS boards support in 2.23.0
Diffstat (limited to 'meta-rcar-gen3-adas/conf')
-rw-r--r--meta-rcar-gen3-adas/conf/layer.conf75
-rw-r--r--meta-rcar-gen3-adas/conf/machine/eagle.conf35
-rw-r--r--meta-rcar-gen3-adas/conf/machine/include/r8a7797.inc3
-rw-r--r--meta-rcar-gen3-adas/conf/machine/include/tune-cortexa53.inc18
-rw-r--r--meta-rcar-gen3-adas/conf/machine/v3msk.conf35
5 files changed, 166 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/conf/layer.conf b/meta-rcar-gen3-adas/conf/layer.conf
new file mode 100644
index 0000000..83d0c94
--- /dev/null
+++ b/meta-rcar-gen3-adas/conf/layer.conf
@@ -0,0 +1,75 @@
+# We have a conf and classes directory, append to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have a recipes directory, add to BBFILES
+BBFILES += " \
+ ${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend \
+"
+
+BBFILE_COLLECTIONS += "rcar-gen3-adas"
+BBFILE_PATTERN_rcar-gen3-adas := "^${LAYERDIR}/"
+BBFILE_PRIORITY_rcar-gen3-adas = "7"
+
+# Custom packages
+IMAGE_INSTALL_append_rcar-gen3 = " \
+ kernel-modules \
+ kernel-devicetree \
+ can-utils \
+ libsocketcan \
+ iproute2 \
+ spidev-dbg \
+ e2fsprogs \
+ e2fsprogs-tune2fs \
+ ethtool \
+ pciutils \
+ usbutils \
+ util-linux \
+ mtd-utils \
+ capture \
+ v4l2-fw \
+ iperf \
+ bonnie++ \
+ lmbench \
+ strace \
+ libpcap \
+ eglibc-utils \
+ ldd \
+ procps \
+ can-utils libsocketcan \
+ rsync \
+ mm-init \
+ iio-utils \
+ pulseaudio-server \
+ pulseaudio-misc \
+ pulseaudio-module-cli \
+ pulseaudio-module-remap-sink \
+ pulseaudio-module-remap-source \
+ gstreamer1.0-plugins-good-pulse \
+ gdbserver \
+"
+
+# Radio packages
+IMAGE_INSTALL_append_rcar-gen3 += " \
+ si-tools \
+ linux-firmware-wl18xx \
+ wireless-tools \
+ ti-bt \
+ ti-bt-firmware \
+ bluez5 \
+ bluez5-testtools \
+ pulseaudio-module-bluez5-device \
+ pulseaudio-module-bluez5-discover \
+ pulseaudio-module-bluetooth-discover \
+ pulseaudio-module-bluetooth-policy \
+ ofono \
+ ofono-tests \
+"
+
+DISTRO_FEATURES_remove="x11"
+DISTRO_FEATURES_append = " surroundview "
+DISTRO_FEATURES_append = " opencv-sdk "
+
+IMAGE_INSTALL_remove = "gtk+3-demo clutter-1.0-examples"
+
+EXTRA_IMAGE_FEATURES_append_rcar-gen3 = " eclipse-debug"
diff --git a/meta-rcar-gen3-adas/conf/machine/eagle.conf b/meta-rcar-gen3-adas/conf/machine/eagle.conf
new file mode 100644
index 0000000..02e2a45
--- /dev/null
+++ b/meta-rcar-gen3-adas/conf/machine/eagle.conf
@@ -0,0 +1,35 @@
+#@TYPE: Machine
+#@NAME: Eagle machine
+#@DESCRIPTION: Machine configuration for running Eagle
+
+DEFAULTTUNE ?= "cortexa53"
+require conf/machine/include/tune-cortexa53.inc
+require conf/machine/include/${SOC_FAMILY}.inc
+
+# 32BIT package install (default is disable)
+# This variables can be used only in multilib.
+USE_32BIT_PKGS ?= "0"
+USE_32BIT_WAYLAND ?= "0"
+USE_32BIT_MMP ?= "0"
+
+MACHINE_FEATURES = ""
+
+KERNEL_IMAGETYPE = "Image"
+IMAGE_FSTYPES = "tar.bz2 ext4 cpio.gz"
+
+SERIAL_CONSOLE = "115200 ttySC0"
+
+# Configuration for kernel
+PREFERRED_PROVIDER_virtual/kernel = "linux-renesas"
+KERNEL_DEVICETREE = "renesas/r8a7797-eagle.dtb"
+
+# u-boot
+PREFERRED_VERSION_u-boot = "v2015.04%"
+EXTRA_IMAGEDEPENDS += " u-boot"
+UBOOT_MACHINE = "r8a7797_eagle_defconfig"
+
+# libdrm
+PREFERRED_VERSION_libdrm = "2.4.68"
+
+# Add variable to Build Configuration in build log
+BUILDCFG_VARS_append = " SOC_FAMILY"
diff --git a/meta-rcar-gen3-adas/conf/machine/include/r8a7797.inc b/meta-rcar-gen3-adas/conf/machine/include/r8a7797.inc
new file mode 100644
index 0000000..e2cc4ac
--- /dev/null
+++ b/meta-rcar-gen3-adas/conf/machine/include/r8a7797.inc
@@ -0,0 +1,3 @@
+SOC_FAMILY =. "rcar-gen3:"
+require conf/machine/include/soc-family.inc
+LINUXLIBCVERSION = "4.9"
diff --git a/meta-rcar-gen3-adas/conf/machine/include/tune-cortexa53.inc b/meta-rcar-gen3-adas/conf/machine/include/tune-cortexa53.inc
new file mode 100644
index 0000000..ebf2c4f
--- /dev/null
+++ b/meta-rcar-gen3-adas/conf/machine/include/tune-cortexa53.inc
@@ -0,0 +1,18 @@
+DEFAULTTUNE ?= "cortexa53"
+require conf/machine/include/arm/arch-armv8.inc
+
+TUNEVALID[cortexa53] = "Enable Cortex-A53 specific processor optimizations"
+TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a"
+
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", " -march=armv8-a", "" ,d)}"
+
+MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa53", "cortexa53:", "" ,d)}"
+
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa53", " -mtune=cortex-a53", "", d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa53"
+ARMPKGARCH_tune-cortexa53 = "cortexa53"
+TUNE_FEATURES_tune-cortexa53 = "${TUNE_FEATURES_tune-aarch64} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64} cortexa53"
+BASE_LIB_tune-cortexa53 = "lib64"
diff --git a/meta-rcar-gen3-adas/conf/machine/v3msk.conf b/meta-rcar-gen3-adas/conf/machine/v3msk.conf
new file mode 100644
index 0000000..a86470e
--- /dev/null
+++ b/meta-rcar-gen3-adas/conf/machine/v3msk.conf
@@ -0,0 +1,35 @@
+#@TYPE: Machine
+#@NAME: V3MSK machine
+#@DESCRIPTION: Machine configuration for running V3MSK
+
+DEFAULTTUNE ?= "cortexa53"
+require conf/machine/include/tune-cortexa53.inc
+require conf/machine/include/${SOC_FAMILY}.inc
+
+# 32BIT package install (default is disable)
+# This variables can be used only in multilib.
+USE_32BIT_PKGS ?= "0"
+USE_32BIT_WAYLAND ?= "0"
+USE_32BIT_MMP ?= "0"
+
+MACHINE_FEATURES = ""
+
+KERNEL_IMAGETYPE = "Image"
+IMAGE_FSTYPES = "tar.bz2 ext4 cpio.gz"
+
+SERIAL_CONSOLE = "115200 ttySC0"
+
+# Configuration for kernel
+PREFERRED_PROVIDER_virtual/kernel = "linux-renesas"
+KERNEL_DEVICETREE = "renesas/r8a7797-v3msk.dtb"
+
+# u-boot
+PREFERRED_VERSION_u-boot = "v2015.04%"
+EXTRA_IMAGEDEPENDS += " u-boot"
+UBOOT_MACHINE = "r8a7797_eagle_defconfig"
+
+# libdrm
+PREFERRED_VERSION_libdrm = "2.4.68"
+
+# Add variable to Build Configuration in build log
+BUILDCFG_VARS_append = " SOC_FAMILY"