Skip to content
Snippets Groups Projects
Commit 02f42694 authored by Davide Cardillo's avatar Davide Cardillo
Browse files

[General] Updade file name we common naming convention

In other meta layer we have used a common naming convention, used as
official internal standard.
Here we have update this layer with this standard.
parent 1f1768bc
No related branches found
No related tags found
1 merge request!3[General] Updade file name we common naming convention
Showing
with 64 additions and 25 deletions
...@@ -19,11 +19,13 @@ MACHINEOVERRIDES .= ":rockchip" ...@@ -19,11 +19,13 @@ MACHINEOVERRIDES .= ":rockchip"
MACHINE_FIRMWARE ?= "" MACHINE_FIRMWARE ?= ""
MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}" MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-seco" SECO_RK_DEFAULT_BOOTLOADER = "u-boot-seco-rk"
PREFERRED_VERSION_u-boot-seco = "2017.09%"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-seco" PREFERRED_PROVIDER_virtual/bootloader ?= "${SECO_RK_DEFAULT_BOOTLOADER}"
PREFERRED_VERSION_linux-seco ?= "4.4%" PREFERRED_VERSION_u-boot-seco-rk = "2017.09%"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-seco-rk"
PREFERRED_VERSION_linux-seco-rk ?= "4.4%"
LINUXLIBCVERSION ?= "4.4%" LINUXLIBCVERSION ?= "4.4%"
# Custom kernel might not support newest python # Custom kernel might not support newest python
...@@ -58,7 +60,7 @@ RK_IGNORE_BL32 ?= "0" ...@@ -58,7 +60,7 @@ RK_IGNORE_BL32 ?= "0"
RK_LOADER_SIZE ?= "1024" RK_LOADER_SIZE ?= "1024"
RK_LOADER_BACKUP_NUM ?= "4" RK_LOADER_BACKUP_NUM ?= "4"
IMAGE_FSTYPES:remove += "iso live" IMAGE_FSTYPES:remove = "iso live"
export RK_ROOTFS_TYPE ?= "ext4" export RK_ROOTFS_TYPE ?= "ext4"
IMAGE_FSTYPES += "${RK_ROOTFS_TYPE} wic" IMAGE_FSTYPES += "${RK_ROOTFS_TYPE} wic"
......
...@@ -27,7 +27,7 @@ RK_WIFIBT_FIRMWARES = " " ...@@ -27,7 +27,7 @@ RK_WIFIBT_FIRMWARES = " "
MACHINE_FIRMWARE:append = "linux-firmware-bcm43455" MACHINE_FIRMWARE:append = "linux-firmware-bcm43455"
DISTRO_FEATURES:append += " wifi " DISTRO_FEATURES:append += " wifi "
MACHINE_EXTRA_RRECOMMENDS:append += " \ MACHINE_EXTRA_RRECOMMENDS:append = " \
linux-firmware-rk-cdndp \ linux-firmware-rk-cdndp \
rockchip-libmali \ rockchip-libmali \
kernel-modules \ kernel-modules \
......
...@@ -5,7 +5,7 @@ require conf/machine/include/rk3399.inc ...@@ -5,7 +5,7 @@ require conf/machine/include/rk3399.inc
# Overwrite the default kernel version with newest one # Overwrite the default kernel version with newest one
LINUXLIBCVERSION = "4.19%" LINUXLIBCVERSION = "4.19%"
PREFERRED_VERSION_linux-seco = "4.19%" PREFERRED_VERSION_linux-seco-rk = "4.19%"
KBUILD_DEFCONFIG ?= "seco_rk3399_c31-linux_defconfig" KBUILD_DEFCONFIG ?= "seco_rk3399_c31-linux_defconfig"
...@@ -47,8 +47,9 @@ UBOOT_MACHINE = "seco_rk3399_c31_defconfig" ...@@ -47,8 +47,9 @@ UBOOT_MACHINE = "seco_rk3399_c31_defconfig"
RK_WIFIBT_FIRMWARES = " \ RK_WIFIBT_FIRMWARES = " \
" "
MACHINE_EXTRA_RRECOMMENDS:append += " \ MACHINE_EXTRA_RRECOMMENDS:append = " \
linux-firmware-rk-cdndp \
rockchip-libmali \
kernel-modules \ kernel-modules \
" "
#linux-firmware-rk-cdndp
#rockchip-libmali
HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
SECTION = "bootloaders"
DEPENDS += "rk-binary-native coreutils-native flex-native bison-native dtc-native"
S = "${WORKDIR}/git"
B = "${WORKDIR}/build"
do_configure[cleandirs] = "${B}"
PE = "1"
\ No newline at end of file
HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
SECTION = "bootloaders"
DEPENDS += "rk-binary-native coreutils-native flex-native bison-native dtc-native"
require u-boot-seco-common.inc S = "${WORKDIR}/git"
require recipes-bsp/u-boot/u-boot.inc B = "${WORKDIR}/build"
do_configure[cleandirs] = "${B}"
PV = "2017.09+git${SRCPV}" PE = "1"
LICENSE = "GPLv2+" LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
......
require u-boot-seco-rk-common.inc
SUMMARY = "U-Boot bootloader SYSDATA utilities"
DEPENDS += "mtd-utils flex-native bison-native"
PROVIDES += "fw-sysdata"
RPROVIDES:${PN} = "fw-sysdata"
INSANE_SKIP:${PN} = "already-stripped"
EXTRA_OEMAKE:class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
EXTRA_OEMAKE:class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
inherit uboot-config
do_compile () {
oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
oe_runmake -C ${S} O=${B} sysdatatools
}
do_install () {
install -d ${D}${base_sbindir}
install -m 755 ${B}/tools/sysdata/fw_sysdata ${D}${base_sbindir}
}
do_install_class-cross () {
install -d ${D}${bindir_cross}
install -m 755 ${B}/tools/sysdata/fw_sysdata ${D}${bindir_cross}/fw_sysdata
}
SYSROOT_DIRS:append_class-cross = " ${bindir_cross}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
BBCLASSEXTEND = "cross"
inherit freeze-rev inherit freeze-rev
inherit auto-patch inherit auto-patch
PATCHPATH = "${CURDIR}/u-boot" PATCHPATH = "${CURDIR}/u-boot-seco-rk"
FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-scr-files:" FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-scr-files:"
# Force using python2 for BSP u-boot # Force using python2 for BSP u-boot
......
require u-boot-seco-rk-common.inc
require recipes-bsp/u-boot/u-boot.inc
PV = "2017.09+git${SRCPV}"
require recipes-kernel/linux/linux-yocto.inc require recipes-kernel/linux/linux-yocto.inc
require linux-seco.inc require linux-seco-rk.inc
inherit freeze-rev inherit freeze-rev
......
require recipes-kernel/linux/linux-yocto.inc require recipes-kernel/linux/linux-yocto.inc
require linux-seco.inc require linux-seco-rk.inc
inherit freeze-rev inherit freeze-rev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment