Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From fb1fe93a2bab083652a65804be5ddd37a7e86a9f Mon Sep 17 00:00:00 2001
|
||||
From: Chunrong Guo <chunrong.guo@nxp.com>
|
||||
Date: Wed, 14 Aug 2019 04:05:14 +0200
|
||||
Subject: [PATCH] Makefile: update CFLAGS
|
||||
|
||||
*fix the below error:
|
||||
|error: json_print.h: No such file or directory
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: C.r. Guo <nxa13725@lsv07004.swis.us-cdc01.nxp.com>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f89700c..49243d8 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -8,7 +8,7 @@ LDFLAGS += -Wl,-export-dynamic
|
||||
# if you are not using flex-builder. Download the iproute2 sources for the
|
||||
# desired version and point to those instead.
|
||||
ifneq ($(IPROUTE2_DIR),)
|
||||
-CFLAGS += -I$(IPROUTE2_DIR) -I$(IPROUTE2_DIR)/include
|
||||
+CFLAGS += -I$(IPROUTE2_DIR) -I$(IPROUTE2_DIR)/include -I$(IPROUTE2_DIR)/usr/include/ -I$(IPROUTE2_DIR)/usr/include/include
|
||||
endif
|
||||
|
||||
MODDESTDIR := $(DESTDIR)/usr/lib/tc
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
From 1eeee62be6f4f4c0564a1ebbf47b5d1ebd7ab282 Mon Sep 17 00:00:00 2001
|
||||
From: Ting Liu <ting.liu@nxp.com>
|
||||
Date: Thu, 15 Apr 2021 14:43:31 +0530
|
||||
Subject: [PATCH] use new api tc_print_rate
|
||||
|
||||
Fix the build issue due to api change in iproute2:
|
||||
| dpaa1_ceetm.c:637:4: error: too few arguments to function 'print_rate'
|
||||
| print_rate(buf, sizeof(buf), qopt->rate);
|
||||
| ^~~~~~~~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Ting Liu <ting.liu@nxp.com>
|
||||
---
|
||||
dpaa1_ceetm.c | 12 ++++--------
|
||||
dpaa2_ceetm.c | 6 ++----
|
||||
2 files changed, 6 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/dpaa1_ceetm.c b/dpaa1_ceetm.c
|
||||
index 15a2cd8..347e79a 100644
|
||||
--- a/dpaa1_ceetm.c
|
||||
+++ b/dpaa1_ceetm.c
|
||||
@@ -634,11 +634,9 @@ int dpaa1_ceetm_print_qopt(struct qdisc_util *qu, FILE *f,
|
||||
fprintf(f, "type root");
|
||||
|
||||
if (qopt->shaped) {
|
||||
- print_rate(buf, sizeof(buf), qopt->rate);
|
||||
- fprintf(f, " shaped rate %s ", buf);
|
||||
+ tc_print_rate(PRINT_FP, NULL, " shaped rate %s ", qopt->rate);
|
||||
|
||||
- print_rate(buf, sizeof(buf), qopt->ceil);
|
||||
- fprintf(f, "ceil %s ", buf);
|
||||
+ tc_print_rate(PRINT_FP, NULL, "ceil %s ", qopt->ceil);
|
||||
|
||||
fprintf(f, "overhead %u ", qopt->overhead);
|
||||
|
||||
@@ -692,11 +690,9 @@ int dpaa1_ceetm_print_copt(struct qdisc_util *qu, FILE *f,
|
||||
fprintf(f, "type root ");
|
||||
|
||||
if (copt->shaped) {
|
||||
- print_rate(buf, sizeof(buf), copt->rate);
|
||||
- fprintf(f, "shaped rate %s ", buf);
|
||||
+ tc_print_rate(PRINT_FP, NULL, "shaped rate %s ", copt->rate);
|
||||
|
||||
- print_rate(buf, sizeof(buf), copt->ceil);
|
||||
- fprintf(f, "ceil %s ", buf);
|
||||
+ tc_print_rate(PRINT_FP, NULL, "ceil %s ", copt->ceil);
|
||||
|
||||
} else {
|
||||
fprintf(f, "unshaped tbl %d", copt->tbl);
|
||||
diff --git a/dpaa2_ceetm.c b/dpaa2_ceetm.c
|
||||
index 6b1b033..0505046 100644
|
||||
--- a/dpaa2_ceetm.c
|
||||
+++ b/dpaa2_ceetm.c
|
||||
@@ -516,11 +516,9 @@ int dpaa2_ceetm_print_copt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
||||
fprintf(f, "type root ");
|
||||
|
||||
if (copt->shaped) {
|
||||
- print_rate(buf, sizeof(buf), copt->shaping_cfg.cir);
|
||||
- fprintf(f, "CIR %s ", buf);
|
||||
+ tc_print_rate(PRINT_FP, NULL, "CIR %s ", copt->shaping_cfg.cir);
|
||||
|
||||
- print_rate(buf, sizeof(buf), copt->shaping_cfg.eir);
|
||||
- fprintf(f, "EIR %s ", buf);
|
||||
+ tc_print_rate(PRINT_FP, NULL, "EIR %s ", copt->shaping_cfg.eir);
|
||||
|
||||
fprintf(f, "CBS %d EBS %d ", copt->shaping_cfg.cbs, copt->shaping_cfg.ebs);
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
29
sources/meta-freescale/recipes-kernel/ceetm/ceetm_git.bb
Normal file
29
sources/meta-freescale/recipes-kernel/ceetm/ceetm_git.bb
Normal file
@@ -0,0 +1,29 @@
|
||||
DESCRIPTION = "CEETM TC QDISC"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq/ceetm;protocol=https;nobranch=1"
|
||||
SRCREV = "27218bc625e83458db2301f6c07de133cb5f6792"
|
||||
SRC_URI:append = " file://0001-Makefile-update-CFLAGS.patch \
|
||||
file://0001-use-new-api-tc_print_rate.patch \
|
||||
"
|
||||
DEPENDS = "iproute2"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
export IPROUTE2_DIR="${STAGING_DIR_TARGET}"
|
||||
WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
|
||||
export CROSS_COMPILE="${WRAP_TARGET_PREFIX}"
|
||||
|
||||
LDFLAGS += "${TOOLCHAIN_OPTIONS}"
|
||||
|
||||
do_install(){
|
||||
mkdir -p ${D}/${libdir}/tc
|
||||
cp ${S}/q_ceetm.so ${D}/${libdir}/tc/
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir}/tc"
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "(qoriq)"
|
||||
PACKAGE_ARCH = "${MACHINE_SOCARCH}"
|
||||
@@ -0,0 +1,32 @@
|
||||
SUMMARY = "Auto Response Control Module"
|
||||
LICENSE = "GPL-2.0-only & BSD"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287"
|
||||
|
||||
inherit module
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/auto-resp;branch=nxp/sdk-v2.0.x;protocol=https"
|
||||
SRCREV = "9a74743167dcfcfbca5056eedbff9a52337c9712"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}"
|
||||
export KERNEL_PATH
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
do_compile:prepend() {
|
||||
sed -i -e 's,EXTRA_CFLAGS += -I$(PWD),EXTRA_CFLAGS += -I${S},' ${S}/armodule/source/Makefile
|
||||
}
|
||||
|
||||
do_install(){
|
||||
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}
|
||||
install -d ${D}${bindir}
|
||||
install -m 644 ${B}/bin/ar.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/
|
||||
cp -f ${S}/bin/ar_* ${D}${bindir}/
|
||||
}
|
||||
|
||||
FILES:${PN} += "${bindir}/"
|
||||
INSANE_SKIP:${PN} = "ldflags"
|
||||
COMPATIBLE_MACHINE = "(t1040|t1042)"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
@@ -0,0 +1,330 @@
|
||||
Add makefile to kernel-module-imx-gpu-viv
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
Index: git/Makefile
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ git/Makefile 2017-06-27 12:07:11.931698672 -0500
|
||||
@@ -0,0 +1,17 @@
|
||||
+obj-m := galcore.o
|
||||
+
|
||||
+SRC := $(shell pwd)
|
||||
+
|
||||
+all:
|
||||
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC)/src AQROOT=${PWD}/src
|
||||
+ cp $(SRC)/src/Module.symvers $(PWD)
|
||||
+ cp $(SRC)/src/modules.order $(PWD)
|
||||
+
|
||||
+modules_install:
|
||||
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC)/src modules_install
|
||||
+
|
||||
+clean:
|
||||
+ find . -name '*.o' -delete
|
||||
+ rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
|
||||
+ rm -f Module.markers Module.symvers modules.order
|
||||
+ rm -rf .tmp_versions Modules.symvers
|
||||
Index: git/src/hal/kernel/arch/makefile.linux
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ git/src/hal/kernel/arch/makefile.linux 2017-06-27 11:44:06.004826232 -0500
|
||||
@@ -0,0 +1,91 @@
|
||||
+##############################################################################
|
||||
+#
|
||||
+# The MIT License (MIT)
|
||||
+#
|
||||
+# Copyright (c) 2014 - 2017 Vivante Corporation
|
||||
+#
|
||||
+# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
+# copy of this software and associated documentation files (the "Software"),
|
||||
+# to deal in the Software without restriction, including without limitation
|
||||
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
+# and/or sell copies of the Software, and to permit persons to whom the
|
||||
+# Software is furnished to do so, subject to the following conditions:
|
||||
+#
|
||||
+# The above copyright notice and this permission notice shall be included in
|
||||
+# all copies or substantial portions of the Software.
|
||||
+#
|
||||
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
+# DEALINGS IN THE SOFTWARE.
|
||||
+#
|
||||
+##############################################################################
|
||||
+#
|
||||
+# The GPL License (GPL)
|
||||
+#
|
||||
+# Copyright (C) 2014 - 2017 Vivante Corporation
|
||||
+#
|
||||
+# This program is free software; you can redistribute it and/or
|
||||
+# modify it under the terms of the GNU General Public License
|
||||
+# as published by the Free Software Foundation; either version 2
|
||||
+# of the License, or (at your option) any later version.
|
||||
+#
|
||||
+# This program is distributed in the hope that it will be useful,
|
||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+# GNU General Public License for more details.
|
||||
+#
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program; if not, write to the Free Software Foundation,
|
||||
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
+#
|
||||
+##############################################################################
|
||||
+#
|
||||
+# Note: This software is released under dual MIT and GPL licenses. A
|
||||
+# recipient may use this file under the terms of either the MIT license or
|
||||
+# GPL License. If you wish to use only one license not the other, you can
|
||||
+# indicate your decision by deleting one of the above license notices in your
|
||||
+# version of this file.
|
||||
+#
|
||||
+##############################################################################
|
||||
+
|
||||
+
|
||||
+#
|
||||
+# Linux build file for architecture dependent kernel HAL layer.
|
||||
+#
|
||||
+
|
||||
+################################################################################
|
||||
+# Include common definitions.
|
||||
+
|
||||
+include $(AQROOT)/makefile.linux.def
|
||||
+
|
||||
+################################################################################
|
||||
+# Define a shortcut for the main target.
|
||||
+
|
||||
+STATIC = 1
|
||||
+TARGET_NAME = libhalarchkernel.a
|
||||
+
|
||||
+################################################################################
|
||||
+# Supply additional include directories.
|
||||
+
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/arch
|
||||
+ifeq ($(VIVANTE_ENABLE_VG),1)
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/archvg
|
||||
+endif
|
||||
+
|
||||
+CFLAGS += $(INCLUDE) -Werror -ansi
|
||||
+
|
||||
+
|
||||
+################################################################################
|
||||
+# Describe object files.
|
||||
+
|
||||
+OBJECTS = $(OBJ_DIR)/gc_hal_kernel_context.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_hardware.o
|
||||
+
|
||||
+include $(AQROOT)/common.target
|
||||
Index: git/src/hal/kernel/archvg/makefile.linux
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ git/src/hal/kernel/archvg/makefile.linux 2017-06-27 11:44:06.004826232 -0500
|
||||
@@ -0,0 +1,91 @@
|
||||
+##############################################################################
|
||||
+#
|
||||
+# The MIT License (MIT)
|
||||
+#
|
||||
+# Copyright (c) 2014 - 2017 Vivante Corporation
|
||||
+#
|
||||
+# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
+# copy of this software and associated documentation files (the "Software"),
|
||||
+# to deal in the Software without restriction, including without limitation
|
||||
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
+# and/or sell copies of the Software, and to permit persons to whom the
|
||||
+# Software is furnished to do so, subject to the following conditions:
|
||||
+#
|
||||
+# The above copyright notice and this permission notice shall be included in
|
||||
+# all copies or substantial portions of the Software.
|
||||
+#
|
||||
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
+# DEALINGS IN THE SOFTWARE.
|
||||
+#
|
||||
+##############################################################################
|
||||
+#
|
||||
+# The GPL License (GPL)
|
||||
+#
|
||||
+# Copyright (C) 2014 - 2017 Vivante Corporation
|
||||
+#
|
||||
+# This program is free software; you can redistribute it and/or
|
||||
+# modify it under the terms of the GNU General Public License
|
||||
+# as published by the Free Software Foundation; either version 2
|
||||
+# of the License, or (at your option) any later version.
|
||||
+#
|
||||
+# This program is distributed in the hope that it will be useful,
|
||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+# GNU General Public License for more details.
|
||||
+#
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program; if not, write to the Free Software Foundation,
|
||||
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
+#
|
||||
+##############################################################################
|
||||
+#
|
||||
+# Note: This software is released under dual MIT and GPL licenses. A
|
||||
+# recipient may use this file under the terms of either the MIT license or
|
||||
+# GPL License. If you wish to use only one license not the other, you can
|
||||
+# indicate your decision by deleting one of the above license notices in your
|
||||
+# version of this file.
|
||||
+#
|
||||
+##############################################################################
|
||||
+
|
||||
+
|
||||
+#
|
||||
+# Linux build file for architecture dependent kernel HAL layer.
|
||||
+#
|
||||
+
|
||||
+################################################################################
|
||||
+# Include common definitions.
|
||||
+
|
||||
+include $(AQROOT)/makefile.linux.def
|
||||
+
|
||||
+################################################################################
|
||||
+# Define a shortcut for the main target.
|
||||
+
|
||||
+STATIC = 1
|
||||
+
|
||||
+TARGET_NAME = libhalarchkernelvg.a
|
||||
+
|
||||
+################################################################################
|
||||
+# Supply additional include directories.
|
||||
+
|
||||
+INCLUDE += -I$(AQROOT)/hal/inc
|
||||
+INCLUDE += -I$(AQROOT)/hal/user
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/arch
|
||||
+ifeq ($(VIVANTE_ENABLE_VG), 1)
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/archvg
|
||||
+endif
|
||||
+
|
||||
+CFLAGS += $(INCLUDE) -Werror -ansi
|
||||
+
|
||||
+################################################################################
|
||||
+# Describe object files.
|
||||
+
|
||||
+OBJECTS = $(OBJ_DIR)/gc_hal_kernel_hardware_vg.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_hardware_command_vg.o
|
||||
+
|
||||
+include $(AQROOT)/common.target
|
||||
Index: git/src/hal/kernel/makefile.linux
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ git/src/hal/kernel/makefile.linux 2017-06-27 11:44:06.004826232 -0500
|
||||
@@ -0,0 +1,107 @@
|
||||
+##############################################################################
|
||||
+#
|
||||
+# The MIT License (MIT)
|
||||
+#
|
||||
+# Copyright (c) 2014 - 2017 Vivante Corporation
|
||||
+#
|
||||
+# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
+# copy of this software and associated documentation files (the "Software"),
|
||||
+# to deal in the Software without restriction, including without limitation
|
||||
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
+# and/or sell copies of the Software, and to permit persons to whom the
|
||||
+# Software is furnished to do so, subject to the following conditions:
|
||||
+#
|
||||
+# The above copyright notice and this permission notice shall be included in
|
||||
+# all copies or substantial portions of the Software.
|
||||
+#
|
||||
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
+# DEALINGS IN THE SOFTWARE.
|
||||
+#
|
||||
+##############################################################################
|
||||
+#
|
||||
+# The GPL License (GPL)
|
||||
+#
|
||||
+# Copyright (C) 2014 - 2017 Vivante Corporation
|
||||
+#
|
||||
+# This program is free software; you can redistribute it and/or
|
||||
+# modify it under the terms of the GNU General Public License
|
||||
+# as published by the Free Software Foundation; either version 2
|
||||
+# of the License, or (at your option) any later version.
|
||||
+#
|
||||
+# This program is distributed in the hope that it will be useful,
|
||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+# GNU General Public License for more details.
|
||||
+#
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program; if not, write to the Free Software Foundation,
|
||||
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
+#
|
||||
+##############################################################################
|
||||
+#
|
||||
+# Note: This software is released under dual MIT and GPL licenses. A
|
||||
+# recipient may use this file under the terms of either the MIT license or
|
||||
+# GPL License. If you wish to use only one license not the other, you can
|
||||
+# indicate your decision by deleting one of the above license notices in your
|
||||
+# version of this file.
|
||||
+#
|
||||
+##############################################################################
|
||||
+
|
||||
+
|
||||
+#
|
||||
+# Linux build file for architecture dependent kernel HAL layer.
|
||||
+#
|
||||
+#
|
||||
+
|
||||
+
|
||||
+################################################################################
|
||||
+# Include common definitions.
|
||||
+
|
||||
+include $(AQROOT)/makefile.linux.def
|
||||
+
|
||||
+################################################################################
|
||||
+# Define a shortcut for the main target.
|
||||
+
|
||||
+STATIC = 1
|
||||
+TARGET_NAME = libhalkernel.a
|
||||
+
|
||||
+################################################################################
|
||||
+# Supply additional include directories.
|
||||
+
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/arch
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel
|
||||
+ifeq ($(VIVANTE_ENABLE_VG),1)
|
||||
+INCLUDE += -I$(AQROOT)/hal/kernel/archvg
|
||||
+endif
|
||||
+INCLUDE += -I$(AQROOT)/hal/os/linux/kernel
|
||||
+CFLAGS += $(INCLUDE) -Werror -ansi
|
||||
+
|
||||
+
|
||||
+################################################################################
|
||||
+# Describe object files.
|
||||
+
|
||||
+OBJECTS = $(OBJ_DIR)/gc_hal_kernel_command.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_db.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_debug.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_event.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_heap.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_mmu.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_video_memory.o
|
||||
+
|
||||
+ifeq ($(VIVANTE_ENABLE_VG),1)
|
||||
+OBJECTS += \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_command_vg.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_interrupt_vg.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_mmu_vg.o \
|
||||
+ $(OBJ_DIR)/gc_hal_kernel_vg.o
|
||||
+endif
|
||||
+
|
||||
+include $(AQROOT)/common.target
|
||||
@@ -0,0 +1,24 @@
|
||||
# Copyright (C) 2015-2016 Freescale Semiconductor
|
||||
# Copyright (C) 2017-2021 NXP
|
||||
|
||||
SUMMARY = "Kernel loadable module for Vivante GPU"
|
||||
DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \
|
||||
allowing flexibility to use a newer graphics release with an older kernel."
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
|
||||
|
||||
SRC_URI = "${KERNEL_SRC};subpath=drivers/mxc/gpu-viv;destsuffix=git/src \
|
||||
file://Add-makefile.patch"
|
||||
KERNEL_SRC ?= "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}"
|
||||
SRCBRANCH = "lf-6.6.y"
|
||||
LOCALVERSION = "-6.6.52-2.2.1"
|
||||
SRCREV = "b1d8a6dd8bef36e0bb923afbfa0466935f0270d6"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit module
|
||||
|
||||
EXTRA_OEMAKE += "CONFIG_MXC_GPU_VIV=m"
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD = "galcore"
|
||||
COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
|
||||
@@ -0,0 +1,20 @@
|
||||
# Copyright (C) 2015-2018 O.S. Systems Software LTDA.
|
||||
# Copyright (C) 2015-2016 Freescale Semiconductor
|
||||
|
||||
SUMMARY = "Kernel loadable module for Vivante GPU"
|
||||
DESCRIPTION = "This package uses an exact copy of the GPU kernel driver source code of \
|
||||
the same version as base and include fixes and improvements developed by FSL Community"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
|
||||
|
||||
PV .= "+git${SRCPV}"
|
||||
|
||||
SRCREV = "4d035200e7b15d2713d49979a1d05f201b92cf4c"
|
||||
SRC_URI = "git://github.com/Freescale/kernel-module-imx-gpu-viv.git;protocol=https;branch=master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit module
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD = "galcore"
|
||||
COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Linux IPC KERNEL MODULE "
|
||||
DESCRIPTION = "DSP boot application and ipc test application"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
|
||||
|
||||
inherit module qoriq_build_64bit_kernel
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/ipc;protocol=https;nobranch=1"
|
||||
SRCREV = "74d662707558290f070f9589177db730444bc435"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_configure[depends] += "virtual/kernel:do_shared_workdir"
|
||||
do_compile:prepend () {
|
||||
cd ${S}/kernel
|
||||
}
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
@@ -0,0 +1,22 @@
|
||||
# Copyright 2020-2023 NXP
|
||||
|
||||
DESCRIPTION = "Kernel loadable module for ISP"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://${S}/../LICENSE;md5=64381a6ea83b48c39fe524c85f65fb44"
|
||||
|
||||
SRC_URI = "${ISP_KERNEL_SRC};branch=${SRCBRANCH}"
|
||||
ISP_KERNEL_SRC ?= "git://github.com/nxp-imx/isp-vvcam.git;protocol=https"
|
||||
SRCBRANCH = "lf-6.6.y_2.0.0"
|
||||
SRCREV = "ab77b0521615d3f279263ba67439aed887d525d7"
|
||||
|
||||
S = "${WORKDIR}/git/vvcam/v4l2"
|
||||
|
||||
inherit module
|
||||
|
||||
MODULES_MODULE_SYMVERS_LOCATION = "dwe"
|
||||
|
||||
DEBUG_PREFIX_MAP:prepend = " \
|
||||
-fmacro-prefix-map=${WORKDIR}/git/vvcam=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
|
||||
-fdebug-prefix-map=${WORKDIR}/git/vvcam=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} "
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx8mp-nxp-bsp)"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Layerscape Debug File System Module"
|
||||
DESCRIPTION = "This package is the kernel module which is used for \
|
||||
ls102xa targets debug."
|
||||
SECTION = "ls-debug"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94263f12f9416f9fd0493c8f9e8085a3"
|
||||
|
||||
inherit module autotools-brokensep
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/ls-dbg;branch=nxp/master;protocol=https"
|
||||
SRCREV = "40501f6659e880d38508cdd34a4df2d348d1c68e"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_DIR}"
|
||||
EXTRA_OEMAKE += 'SYSROOT="${D}"'
|
||||
|
||||
COMPATIBLE_MACHINE = "(ls102xa)"
|
||||
@@ -0,0 +1,36 @@
|
||||
From b1b218757973fd6a293de5bdbdc75307db07998e Mon Sep 17 00:00:00 2001
|
||||
From: Vitor Soares <vitor.soares@toradex.com>
|
||||
Date: Wed, 30 Apr 2025 15:12:06 +0100
|
||||
Subject: [PATCH] mlinux: moal_main: lower PRINTM_MMSG() log level to KERN_INFO
|
||||
|
||||
Currently, the PRINTM_MMSG macro uses KERN_ALERT for printing messages.
|
||||
KERN_ALERT is intended for critical conditions requiring immediate
|
||||
attention (e.g., hardware failure), and using it for normal debug output
|
||||
is misleading and can clutter system logs.
|
||||
|
||||
This patch lowers the log level to KERN_INFO, which is more appropriate
|
||||
for informational messages that are not indicative of system-critical
|
||||
failures.
|
||||
|
||||
Upstream-Status: Inappropriate [upstream not accepting patches]
|
||||
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
|
||||
---
|
||||
mlinux/moal_main.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/mlinux/moal_main.h b/mlinux/moal_main.h
|
||||
index 6d87dcf4f5db..b4e7e4d4a5fd 100644
|
||||
--- a/mlinux/moal_main.h
|
||||
+++ b/mlinux/moal_main.h
|
||||
@@ -3517,7 +3517,7 @@ extern t_u32 drvdbg;
|
||||
do { \
|
||||
woal_print(level, msg); \
|
||||
if (drvdbg & MMSG) \
|
||||
- printk(KERN_ALERT msg); \
|
||||
+ printk(KERN_INFO msg); \
|
||||
} while (0)
|
||||
|
||||
static inline void woal_print(t_u32 level, char *fmt, ...)
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
From b2bcca5c812b654e39d8709070266d6fbf37c121 Mon Sep 17 00:00:00 2001
|
||||
From: Luke Wang <ziniu.wang_1@nxp.com>
|
||||
Date: Tue, 15 Oct 2024 15:49:05 +0800
|
||||
Subject: [PATCH] mxm_wifiex: fix build error for 64-bit division
|
||||
|
||||
When build on 32-bit platform, error log shows:
|
||||
ERROR: modpost: "__aeabi_uldivmod" [mwifiex/mlan.ko] undefined!
|
||||
ERROR: modpost: "__aeabi_ldivmod" [mwifiex/mlan.ko] undefined!
|
||||
|
||||
32-bit platform need to use do_div() to support 64-bit division.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/nxp-imx/mwifiex/commit/fd7dd188a1ad7eb8bc110d30815e087362f91d72]
|
||||
|
||||
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
|
||||
---
|
||||
mlan/mlan_wmm.c | 33 +++++++++++++++++----------------
|
||||
1 file changed, 17 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/mlan/mlan_wmm.c b/mlan/mlan_wmm.c
|
||||
index 6da49ea..8815ca5 100644
|
||||
--- a/mlan/mlan_wmm.c
|
||||
+++ b/mlan/mlan_wmm.c
|
||||
@@ -840,11 +840,11 @@ static raListTbl *wlan_wmm_get_highest_priolist_ptr(pmlan_adapter pmadapter,
|
||||
*
|
||||
* @return byte budget
|
||||
*/
|
||||
-static t_u32 wlan_wmm_get_byte_budget(t_u32 time_budget_us, t_u32 phy_rate_kbps)
|
||||
+static t_u32 wlan_wmm_get_byte_budget(pmlan_adapter pmadapter, t_u32 time_budget_us, t_u32 phy_rate_kbps)
|
||||
{
|
||||
const t_u32 min_budget = MV_ETH_FRAME_LEN;
|
||||
- t_u64 byte_budget =
|
||||
- ((t_u64)phy_rate_kbps * time_budget_us) / (8 * 1000u);
|
||||
+ t_u64 byte_budget = pmadapter->callbacks.moal_do_div((t_u64)phy_rate_kbps * time_budget_us,
|
||||
+ 8 * 1000u);
|
||||
|
||||
if (byte_budget > INT_MAX)
|
||||
return INT_MAX;
|
||||
@@ -891,7 +891,7 @@ wlan_wmm_allocate_sta_table(pmlan_adapter pmadapter, t_u8 *ra)
|
||||
|
||||
sta_table->budget.time_budget_init_us = pmadapter->init_para.tx_budget;
|
||||
sta_table->budget.byte_budget_init = wlan_wmm_get_byte_budget(
|
||||
- sta_table->budget.time_budget_init_us, default_rate);
|
||||
+ pmadapter, sta_table->budget.time_budget_init_us, default_rate);
|
||||
sta_table->budget.queue_packets = default_queue_packets;
|
||||
sta_table->budget.phy_rate_kbps = default_rate;
|
||||
|
||||
@@ -900,14 +900,14 @@ wlan_wmm_allocate_sta_table(pmlan_adapter pmadapter, t_u8 *ra)
|
||||
sta_table->budget.mpdu_no_amsdu_pps_cap =
|
||||
pmadapter->tx_mpdu_no_amsdu_pps;
|
||||
|
||||
- sta_table->budget.mpdu_with_amsdu_budget_init =
|
||||
- ((t_u64)sta_table->budget.mpdu_with_amsdu_pps_cap *
|
||||
- sta_table->budget.time_budget_init_us) /
|
||||
- 1000000;
|
||||
- sta_table->budget.mpdu_no_amsdu_budget_init =
|
||||
- ((t_u64)sta_table->budget.mpdu_no_amsdu_pps_cap *
|
||||
- sta_table->budget.time_budget_init_us) /
|
||||
- 1000000;
|
||||
+ sta_table->budget.mpdu_with_amsdu_budget_init = pmadapter->callbacks.moal_do_div(
|
||||
+ (t_u64)sta_table->budget.mpdu_with_amsdu_pps_cap *
|
||||
+ sta_table->budget.time_budget_init_us,
|
||||
+ 1000000);
|
||||
+ sta_table->budget.mpdu_no_amsdu_budget_init = pmadapter->callbacks.moal_do_div(
|
||||
+ (t_u64)sta_table->budget.mpdu_no_amsdu_pps_cap *
|
||||
+ sta_table->budget.time_budget_init_us,
|
||||
+ 1000000);
|
||||
|
||||
for (i = 0; i < NELEMENTS(sta_table->budget.bytes); ++i) {
|
||||
sta_table->budget.bytes[i] = sta_table->budget.byte_budget_init;
|
||||
@@ -3142,12 +3142,12 @@ static t_void wlan_wmm_update_queue_packets_budget(pmlan_adapter pmadapter,
|
||||
list_entry, struct wmm_sta_table, active_sta_entry);
|
||||
const t_u64 sta_capacity = sta->budget.byte_budget_init;
|
||||
const t_u32 max_pkts_by_airtime =
|
||||
- wlan_wmm_get_byte_budget(max_pending_tx_time_us,
|
||||
+ wlan_wmm_get_byte_budget(pmadapter, max_pending_tx_time_us,
|
||||
sta->budget.phy_rate_kbps) /
|
||||
MV_ETH_FRAME_LEN;
|
||||
+ t_u32 sta_share = pmadapter->callbacks.moal_do_div((t_u64)queue_packets_limit * sta_capacity,
|
||||
+ total_capacity);
|
||||
|
||||
- t_u32 sta_share =
|
||||
- queue_packets_limit * sta_capacity / total_capacity;
|
||||
sta_share = MAX(sta_share, min_sta_share);
|
||||
sta_share = MIN(sta_share, queue_packets_limit * 7 / 8);
|
||||
sta_share = MIN(sta_share, max_pkts_by_airtime);
|
||||
@@ -5183,6 +5183,7 @@ static void wlan_wmm_adjust_sta_tx_budget(pmlan_private priv,
|
||||
struct wmm_sta_table *sta,
|
||||
HostCmd_TX_RATE_QUERY *rate)
|
||||
{
|
||||
+ mlan_adapter *pmadapter = priv->adapter;
|
||||
const t_u8 ppdu_type_legacy = 0;
|
||||
const t_u8 ppdu_type_ht = 1;
|
||||
const t_u8 ppdu_type_vht = 2;
|
||||
@@ -5210,7 +5211,7 @@ static void wlan_wmm_adjust_sta_tx_budget(pmlan_private priv,
|
||||
if (phy_rate > 0) {
|
||||
const t_u32 old_phy_rate = sta->budget.phy_rate_kbps;
|
||||
sta->budget.byte_budget_init = wlan_wmm_get_byte_budget(
|
||||
- sta->budget.time_budget_init_us, phy_rate);
|
||||
+ pmadapter, sta->budget.time_budget_init_us, phy_rate);
|
||||
sta->budget.phy_rate_kbps = phy_rate;
|
||||
|
||||
if (old_phy_rate / phy_rate >= 2 ||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From f45013f26a7045e882e4a0ac99ae126571fa60af Mon Sep 17 00:00:00 2001
|
||||
From: Luke Wang <ziniu.wang_1@nxp.com>
|
||||
Date: Tue, 15 Oct 2024 15:49:48 +0800
|
||||
Subject: [PATCH] mxm_wifiex: fix build error for udelay
|
||||
|
||||
When build on 32-bit platform, error log shows:
|
||||
ERROR: modpost: "__bad_udelay" [mwifiex/moal.ko] undefined!
|
||||
|
||||
32-bit platform udelay has 2000us limition. Split it as workaround.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/nxp-imx/mwifiex/commit/f45013f26a7045e882e4a0ac99ae126571fa60af]
|
||||
|
||||
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
|
||||
---
|
||||
mlinux/moal_sdio_mmc.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/mlinux/moal_sdio_mmc.c b/mlinux/moal_sdio_mmc.c
|
||||
index 746f434..299829e 100644
|
||||
--- a/mlinux/moal_sdio_mmc.c
|
||||
+++ b/mlinux/moal_sdio_mmc.c
|
||||
@@ -3322,7 +3322,8 @@ static int woal_sdiommc_reset_fw(moal_handle *handle)
|
||||
ret = -EFAULT;
|
||||
goto done;
|
||||
}
|
||||
- udelay(4000);
|
||||
+ udelay(2000);
|
||||
+ udelay(2000);
|
||||
/** wait SOC fully wake up */
|
||||
for (tries = 0; tries < MAX_POLL_TRIES; ++tries) {
|
||||
ret = handle->ops.write_reg(handle, reset_reg, 0xba);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "NXP Wi-Fi driver for module 88w8801/8987/8997/9098 IW416/610/612"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=ab04ac0f249af12befccb94447c08b77"
|
||||
|
||||
# For backwards compatibility
|
||||
PROVIDES += "kernel-module-nxp89xx"
|
||||
RREPLACES:${PN} = "kernel-module-nxp89xx"
|
||||
RPROVIDES:${PN} = "kernel-module-nxp89xx"
|
||||
RCONFLICTS:${PN} = "kernel-module-nxp89xx"
|
||||
|
||||
SRCBRANCH = "lf-6.6.52_2.2.0"
|
||||
MRVL_SRC ?= "git://github.com/nxp-imx/mwifiex.git;protocol=https"
|
||||
SRC_URI = " \
|
||||
${MRVL_SRC};branch=${SRCBRANCH} \
|
||||
file://wlan_src_driver_patch_release_lf-6.6.52-2.2.0.patch \
|
||||
file://mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch \
|
||||
file://mxm_wifiex_fix_build_error_for_64-bit_division.patch \
|
||||
file://mxm_wifiex_fix_build_error_for_udelay.patch \
|
||||
"
|
||||
SRCREV = "5ad19e194f49ed9447bee7864eb562618ccaf9b1"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit module
|
||||
|
||||
EXTRA_OEMAKE = "KERNELDIR=${STAGING_KERNEL_BUILDDIR} -C ${STAGING_KERNEL_BUILDDIR} M=${S}"
|
||||
@@ -0,0 +1,12 @@
|
||||
DESCRIPTION = "UIO driver for T1040 L2 Switch"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/l2switch-uio;branch=nxp/sdk-v2.0.x;protocol=https"
|
||||
SRCREV = "0f31fbcbe9ab1ab9c424da34f70c82314b16f8de"
|
||||
|
||||
inherit module
|
||||
|
||||
S = "${WORKDIR}/git/uio-driver"
|
||||
|
||||
COMPATIBLE_MACHINE = "(t1040|t1042)"
|
||||
@@ -0,0 +1,107 @@
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
SUMMARY = "Linux Kernel provided by NXP and supported by Community"
|
||||
DESCRIPTION = "Linux Kernel provided by NXP as the part of release distribution. \
|
||||
Main focus is set on i.MX Family Reference Boards. \
|
||||
It includes support for many NXP Proprietary IPs (GPU, VPU, IPU). \
|
||||
Latest stable Kernel patchlevel is applied and maintained by Community."
|
||||
|
||||
###############################################################################
|
||||
# This recipe (and corresponding kernel repository and branch) receives updates
|
||||
# from 3 different sources:
|
||||
# 1. Stable [linux-6.6.y] branch updates of korg;
|
||||
# 2. NXP-specific updates via branch [lf-6.6.y] shared via GitHub NXP repo;
|
||||
# 3. Critical patches, which are not (yet) integrated into either of 2 above
|
||||
# sources, but are required to be applied to the kernel tree.
|
||||
#
|
||||
# Therefore, there is a need to keep track on the patches which are introduced
|
||||
# from every source. This could be achieved in this recipe by filling the
|
||||
# below list with the information once the update is performed from any source.
|
||||
#
|
||||
# Once the critical patch gets merged into the stable branch, or NXP-specific
|
||||
# patches would be covered by the tag - individual entries from sections below
|
||||
# could be removed.
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# 1. Stable (tag or SHA(s))
|
||||
# ------------------------------------------------------------------------------
|
||||
# tag: v6.6.74
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# 2. NXP-specific (tag or SHA(s))
|
||||
# ------------------------------------------------------------------------------
|
||||
# tag: lf-6.6.52-2.2.0
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# 3. Critical patches (SHA(s))
|
||||
# ------------------------------------------------------------------------------
|
||||
# The list includes well-known commits not yet upstreamed. Reverts address merge
|
||||
# conflicts, prioritizing NXP BSP source code as the latest vendor updates.
|
||||
# Additional commits may exist to better acommodate yocto builds.
|
||||
#
|
||||
# $ git log --oneline --no-merges v6.6.101.. ^mainline/linux-6.6.y ^NXP/lf-6.6.y
|
||||
# - ff2e4152c6ac Fix merge error on pci/controller/dwc/pci-imx6.c
|
||||
# - 0e91a51824ac Fix the merge between 6.6.85 and imx branch
|
||||
# - db393a056f28 imx8mp-olimex.dts: CSI GPIO pins
|
||||
# - 8981bfbf2cd5 Reapply "LF-12740: mxc: vpu: hantro_v4l2: report performance statistics"
|
||||
# - 9a97c180b1c4 Fix spi-nxp-fspi merge error
|
||||
# - e587f8fe42f1 firmware: se_fw: remove info_list from ro section
|
||||
# - 0f638960dcff media: Kconfig: fix double VIDEO_DEV
|
||||
# - 198242c057e0 drivers:clk:imx:clk-imx8mp-audiomix: remove duplicated CLK_GATE_PARENT definition
|
||||
# - 4f5936d7391f Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null"
|
||||
# - 997b7e13e413 imx8mp-olimex.dts: Olimex iMX8MP-SOM-EVB-IND
|
||||
# - b746c990ecba Revert "LF-12740: mxc: vpu: hantro_v4l2: report performance statistics"
|
||||
# - e349e6c45a94 arm64: imx_v8_defconfig: Enable CONFIG_GPIO_VF610
|
||||
# - 5a015324eddc arm64: dts: imx8qm: add missing imx8-ss-cm40.dtsi include
|
||||
# - 8a8245d395d5 arm64: dts: imx8: img: add #address-cells and #size-cells to I2C MIPI CSI nodes
|
||||
# - db13648c4be6 fw: imx: seco_mu: change dev_err to dev_err_probe for -EPROBE_DEFER
|
||||
# - 0451236fd0ae clk: imx: imx8qm: add more resources to whitelist
|
||||
# - 2ee789512d1b drm/imx: lcdifv3: Fix videomode settings
|
||||
# - 5cd4c30ec228 i2c: imx: Remove unnecessary clock reconfiguration
|
||||
# - 583f2a703c5d tty: vt: conmakehash: remove non-portable code printing comment header
|
||||
# - 4ddc4dae8515 tty: vt: conmakehash: cope with abs_srctree no longer in env
|
||||
# - 46a05495bce3 drm: of: Fix build without CONFIG_OF
|
||||
# - 3d6392b96bf1 Revert "LF-4131 iio: gyro: fxas21002c: Fix raw data is not updated in trigger/buffer"
|
||||
# - 93b9fc75becd nvmem: imx-ocotp-fsb-s400: BUG: Fix the word count
|
||||
# - 090d101928fc tty: vt: conmakehash: Don't mention the full path of the input in output
|
||||
# - d16eb5ced32f arm64: dts: imx8mm-evk-qca-wifi: enable support for bluetooth
|
||||
# - d39502c0dea9 imx:dts:imx8mm-evkb: fix the pmic name to avoid duplicated label error
|
||||
# - 58181fb0ff67 media: imx8: select v4l2_* for mxc-mipi-csi2_yav
|
||||
# - 930431e0d1d5 gpu: drm: cadence: select hdmi helper
|
||||
# - da675fd29502 of: enable using OF_DYNAMIC without OF_UNITTEST
|
||||
# - 7c5f3cbb180c arm64: dts: imx8mq: drop cpu-idle-states
|
||||
# - a9920ce3e197 hwrng: optee: support generic crypto
|
||||
#
|
||||
# NOTE to upgraders:
|
||||
# This recipe should NOT collect individual patches, they should be applied to
|
||||
# the linux-fslc kernel tree on the corresponding branch, and tracking
|
||||
# information should be properly filled in above.
|
||||
###############################################################################
|
||||
|
||||
require linux-imx.inc
|
||||
|
||||
KBRANCH = "6.6-2.2.x-imx"
|
||||
SRC_URI = "git://github.com/Freescale/linux-fslc.git;branch=${KBRANCH};protocol=https"
|
||||
SRCREV = "36cee4c51e9a0660f6f07d8f116f0c1fd4d77d30"
|
||||
|
||||
# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
|
||||
# required by kernel-yocto.bbclass.
|
||||
#
|
||||
# LINUX_VERSION define should match to the kernel version referenced by SRC_URI and
|
||||
# should be updated once patchlevel is merged.
|
||||
LINUX_VERSION = "6.6.101"
|
||||
|
||||
KBUILD_DEFCONFIG:mx6-generic-bsp = "imx_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx7-generic-bsp = "imx_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx8-generic-bsp = "imx_v8_defconfig"
|
||||
KBUILD_DEFCONFIG:mx9-generic-bsp = "imx_v8_defconfig"
|
||||
|
||||
# Local version indicates the branch name in the NXP kernel tree where patches are collected from.
|
||||
LOCALVERSION = "-lf-6.6.y"
|
||||
|
||||
DEFAULT_PREFERENCE = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
|
||||
@@ -0,0 +1,41 @@
|
||||
# Copyright (C) 2012-2019 O.S. Systems Software LTDA.
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
SUMMARY = "FSL Community BSP Linux LTS based kernel with backported features and fixes"
|
||||
DESCRIPTION = "Linux kernel based on LTS kernel used by FSL Community BSP in order to \
|
||||
provide support for some backported features and fixes, or because it was applied in upstream \
|
||||
and will not become part of a LTS version, or because it is not applicable for \
|
||||
upstreaming in any form."
|
||||
|
||||
require linux-imx.inc
|
||||
|
||||
KERNEL_DEVICETREE_32BIT_COMPATIBILITY_UPDATE = "1"
|
||||
|
||||
SRC_URI = "git://github.com/Freescale/linux-fslc.git;branch=${KBRANCH};protocol=https"
|
||||
|
||||
# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
|
||||
# required by kernel-yocto.bbclass.
|
||||
#
|
||||
# LINUX_VERSION define should match to the kernel version referenced by SRC_URI and
|
||||
# should be updated once patchlevel is merged.
|
||||
LINUX_VERSION = "6.1.72"
|
||||
|
||||
KBRANCH = "6.1.x+fslc"
|
||||
SRCREV = "b80c9dede70132da3ae7feb949fe0803aad3db24"
|
||||
|
||||
KBUILD_DEFCONFIG:mx5-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx5-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx5-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx6-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx7-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx8-generic-bsp = "defconfig"
|
||||
KBUILD_DEFCONFIG:mx9-generic-bsp = "defconfig"
|
||||
KBUILD_DEFCONFIG:mxs-generic-bsp = "mxs_defconfig"
|
||||
KBUILD_DEFCONFIG:vf-generic-bsp = "imx_v6_v7_defconfig"
|
||||
|
||||
LOCALVERSION = "-fslc"
|
||||
|
||||
COMPATIBLE_MACHINE = "(imx-generic-bsp)"
|
||||
@@ -0,0 +1,37 @@
|
||||
# Copyright (C) 2012-2024 O.S. Systems Software LTDA.
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
SUMMARY = "FSL Community BSP Linux LTS based kernel with backported features and fixes"
|
||||
DESCRIPTION = "Linux kernel based on LTS kernel used by FSL Community BSP in order to \
|
||||
provide support for some backported features and fixes, or because it was applied in upstream \
|
||||
and will not become part of a LTS version, or because it is not applicable for \
|
||||
upstreaming in any form."
|
||||
|
||||
require linux-imx.inc
|
||||
|
||||
SRC_URI = "git://github.com/Freescale/linux-fslc.git;branch=${KBRANCH};protocol=https"
|
||||
|
||||
# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
|
||||
# required by kernel-yocto.bbclass.
|
||||
#
|
||||
# LINUX_VERSION define should match to the kernel version referenced by SRC_URI and
|
||||
# should be updated once patchlevel is merged.
|
||||
LINUX_VERSION = "6.6.50"
|
||||
|
||||
KBRANCH = "6.6.x+fslc"
|
||||
SRCREV = "2473dfed9007471b503efe1f7de74d63eaf4c699"
|
||||
|
||||
KBUILD_DEFCONFIG:mx5-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx6-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx7-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx8-generic-bsp = "defconfig"
|
||||
KBUILD_DEFCONFIG:mx9-generic-bsp = "defconfig"
|
||||
KBUILD_DEFCONFIG:mxs-generic-bsp = "mxs_defconfig"
|
||||
KBUILD_DEFCONFIG:vf-generic-bsp = "imx_v6_v7_defconfig"
|
||||
|
||||
LOCALVERSION = "-fslc"
|
||||
|
||||
COMPATIBLE_MACHINE = "(imx-generic-bsp)"
|
||||
@@ -0,0 +1,17 @@
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Mainline/LTS rebased NXP/QorIQ patches + FSLC patches."
|
||||
DESCRIPTION = "Linux kernel based on LTS kernel used by FSL Community BSP in order to \
|
||||
provide support for some backported features and fixes, or because it was applied in linux-next \
|
||||
and takes some time to become part of a stable version, or because it is not applicable for \
|
||||
upstreaming."
|
||||
|
||||
require recipes-kernel/linux/linux-qoriq.inc
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||
|
||||
LINUX_VERSION = "5.4.92"
|
||||
|
||||
SRCBRANCH = "5.4.y+qoriq+fslc"
|
||||
SRCREV = "11d4722c637a77c6e1c9a8eeec091f1588f6b3f3"
|
||||
SRC_URI := "git://github.com/Freescale/linux-fslc.git;branch=${SRCBRANCH};protocol=https"
|
||||
@@ -0,0 +1,44 @@
|
||||
# Copyright (C) 2012-2024 O.S. Systems Software LTDA.
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
SUMMARY = "FSL Community BSP Linux mainline based kernel with backported features and fixes"
|
||||
DESCRIPTION = "Linux kernel based on mainline kernel used by FSL Community BSP in order to \
|
||||
provide support for some backported features and fixes, or because it was applied in linux-next \
|
||||
and takes some time to become part of a stable version, or because it is not applicable for \
|
||||
upstreaming."
|
||||
|
||||
require linux-imx.inc
|
||||
|
||||
SRC_URI = "git://github.com/Freescale/linux-fslc.git;branch=${KBRANCH};protocol=https"
|
||||
|
||||
DEPENDS += " \
|
||||
coreutils-native \
|
||||
"
|
||||
|
||||
# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
|
||||
# required by kernel-yocto.bbclass.
|
||||
#
|
||||
# LINUX_VERSION define should match to the kernel version referenced by SRC_URI and
|
||||
# should be updated once patchlevel is merged.
|
||||
#
|
||||
# Linux kernel stable 6.12.20 changelog:
|
||||
# https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.20
|
||||
LINUX_VERSION = "6.12.20"
|
||||
|
||||
KBRANCH = "6.12.x+fslc"
|
||||
SRCREV = "844aa3471b97053b0a59f68d36dc6f796338b562"
|
||||
|
||||
KBUILD_DEFCONFIG:mx5-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx6-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx7-generic-bsp = "imx_v6_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx8-generic-bsp = "defconfig"
|
||||
KBUILD_DEFCONFIG:mx9-generic-bsp = "defconfig"
|
||||
KBUILD_DEFCONFIG:mxs-generic-bsp = "mxs_defconfig"
|
||||
KBUILD_DEFCONFIG:vf-generic-bsp = "imx_v6_v7_defconfig"
|
||||
|
||||
LOCALVERSION = "-fslc"
|
||||
|
||||
COMPATIBLE_MACHINE = "(imx-generic-bsp)"
|
||||
@@ -0,0 +1,78 @@
|
||||
# Copyright 2017-2024 NXP
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Installs i.MX-specific kernel headers"
|
||||
DESCRIPTION = "Installs i.MX-specific kernel headers to userspace. \
|
||||
New headers are installed in ${includedir}/imx."
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
|
||||
SRC_URI = "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}"
|
||||
SRCBRANCH = "lf-6.6.y"
|
||||
LOCALVERSION = "-6.6.52-2.2.1"
|
||||
SRCREV = "90192c5d29cb650fd7f7dd9094af14eefb38837d"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
IMX_UAPI_HEADERS = " \
|
||||
dma-buf.h \
|
||||
hantrodec.h \
|
||||
hx280enc.h \
|
||||
ipu.h \
|
||||
imx_vpu.h \
|
||||
mxc_asrc.h \
|
||||
mxc_dcic.h \
|
||||
mxc_mlb.h \
|
||||
mxc_sim_interface.h \
|
||||
mxc_v4l2.h \
|
||||
mxcfb.h \
|
||||
pxp_device.h \
|
||||
pxp_dma.h \
|
||||
version.h \
|
||||
videodev2.h \
|
||||
"
|
||||
|
||||
do_install() {
|
||||
# We install all headers inside of B so we can copy only the
|
||||
# i.MX-specific ones, and there is no risk of a new header to be
|
||||
# installed by mistake.
|
||||
oe_runmake headers_install INSTALL_HDR_PATH=${B}${exec_prefix}
|
||||
|
||||
################################################
|
||||
# BEGIN Copy of exceptional logic from linux-libc-headers
|
||||
# Kernel should not be exporting this header
|
||||
rm -f ${B}${exec_prefix}/include/scsi/scsi.h
|
||||
|
||||
# The ..install.cmd conflicts between various configure runs
|
||||
find ${B}${includedir} -name ..install.cmd | xargs rm -f
|
||||
# END Copy from linux-libc-headers
|
||||
################################################
|
||||
|
||||
# Install i.MX-specific headers only
|
||||
for h in ${IMX_UAPI_HEADERS}; do
|
||||
install -D -m 0644 ${B}${includedir}/linux/$h \
|
||||
${D}${includedir}/imx/linux/$h
|
||||
done
|
||||
}
|
||||
|
||||
# Allow to build empty main package, this is required in order for -dev package
|
||||
# to be propagated into the SDK
|
||||
#
|
||||
# Without this setting the RDEPENDS in other recipes fails to find this
|
||||
# package, therefore causing the -dev package also to be skipped effectively not
|
||||
# populating it into SDK
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS += "unifdef-native bison-native rsync-native"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_SOCARCH}"
|
||||
|
||||
# Restrict this recipe to NXP BSP only, this recipe is not compatible
|
||||
# with mainline BSP
|
||||
COMPATIBLE_HOST = '(null)'
|
||||
COMPATIBLE_HOST:use-nxp-bsp = '.*'
|
||||
66
sources/meta-freescale/recipes-kernel/linux/linux-imx.inc
Normal file
66
sources/meta-freescale/recipes-kernel/linux/linux-imx.inc
Normal file
@@ -0,0 +1,66 @@
|
||||
# Copyright (C) 2012, 2015 O.S. Systems Software LTDA.
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
|
||||
inherit kernel-yocto kernel fsl-kernel-localversion fsl-vivante-kernel-driver-handler
|
||||
|
||||
# Put a local version until we have a true SRCREV to point to
|
||||
LOCALVERSION ?= ""
|
||||
SCMVERSION ?= "y"
|
||||
SRCBRANCH ?= ""
|
||||
|
||||
# Allow use of kernel as linux-mfgtool provider.
|
||||
PROVIDES += "linux-mfgtool"
|
||||
|
||||
# Set the PV to the correct kernel version to satisfy the kernel version sanity check
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://github.com/nxp-imx/linux-imx;protocol=https;branch=${SRCBRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# Tell to kernel class that we would like to use our defconfig to configure the kernel.
|
||||
# Otherwise, the --allnoconfig would be used per default which leads to mis-configured
|
||||
# kernel.
|
||||
#
|
||||
# This behavior happens when a defconfig is provided, the kernel-yocto configuration
|
||||
# uses the filename as a trigger to use a 'allnoconfig' baseline before merging
|
||||
# the defconfig into the build.
|
||||
#
|
||||
# If the defconfig file was created with make_savedefconfig, not all options are
|
||||
# specified, and should be restored with their defaults, not set to 'n'.
|
||||
# To properly expand a defconfig like this, we need to specify: KCONFIG_MODE="--alldefconfig"
|
||||
# in the kernel recipe include.
|
||||
KCONFIG_MODE="--alldefconfig"
|
||||
|
||||
# We need to pass it as param since kernel might support more then one
|
||||
# machine, with different entry points
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
# A function to strip the new 32-bit dtb sub-folders in KERNEL_DEVICETREE
|
||||
# for older kernel builds.
|
||||
# Set KERNEL_DEVICETREE_32BIT_COMPATIBILITY_UPDATE = "1" to enable.
|
||||
KERNEL_DEVICETREE_32BIT_COMPATIBILITY_UPDATE ?= "0"
|
||||
python kernel_devicetree_32bit_compatibility_update() {
|
||||
import os.path
|
||||
import re
|
||||
if d.getVar('KERNEL_DEVICETREE_32BIT_COMPATIBILITY_UPDATE') != "1" or d.getVar('TUNE_ARCH') != "arm":
|
||||
return
|
||||
input = d.getVar('KERNEL_DEVICETREE').split()
|
||||
output = ""
|
||||
stripped = ""
|
||||
for original in input:
|
||||
if re.match("^.*/", original):
|
||||
stripped = os.path.basename(original)
|
||||
output += stripped + " "
|
||||
bb.debug(1, "Devicetrees are moved to sub-folder, stripping the sub-folder for older kernel: %s -> %s" % (original, stripped))
|
||||
else:
|
||||
output += original + " "
|
||||
if stripped:
|
||||
bb.warn("Updating KERNEL_DEVICETREE, removing sub-folders for older kernel. Use -D for more details. Set KERNEL_DEVICETREE_32BIT_COMPATIBILITY_UPDATE = \"0\" to disable.")
|
||||
d.setVar('KERNEL_DEVICETREE', output)
|
||||
}
|
||||
addhandler kernel_devicetree_32bit_compatibility_update
|
||||
kernel_devicetree_32bit_compatibility_update[eventmask] = "bb.event.RecipeParsed"
|
||||
@@ -0,0 +1,70 @@
|
||||
From 3bd85c6c97b2d232638594bf828de62083fe3389 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
|
||||
Date: Mon, 11 Mar 2024 12:30:18 +0100
|
||||
Subject: [PATCH] tty: vt: conmakehash: Don't mention the full path of the
|
||||
input in output
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This change strips $abs_srctree of the input file containing the
|
||||
character mapping table in the generated output. The motivation for this
|
||||
change is Yocto emitting a build warning
|
||||
|
||||
WARNING: linux-lxatac-6.7-r0 do_package_qa: QA Issue: File /usr/src/debug/linux-lxatac/6.7-r0/drivers/tty/vt/consolemap_deftbl.c in package linux-lxatac-src contains reference to TMPDIR
|
||||
|
||||
So this change brings us one step closer to make the build result
|
||||
reproducible independent of the build path.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/torvalds/linux/commit/3bd85c6c97b2d232638594bf828de62083fe3389]
|
||||
|
||||
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
|
||||
Link: https://lore.kernel.org/r/20240311113017.483101-2-u.kleine-koenig@pengutronix.de
|
||||
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||
---
|
||||
drivers/tty/vt/conmakehash.c | 15 +++++++++++++--
|
||||
1 file changed, 13 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c
|
||||
index cddd789fe46e..dc2177fec715 100644
|
||||
--- a/drivers/tty/vt/conmakehash.c
|
||||
+++ b/drivers/tty/vt/conmakehash.c
|
||||
@@ -76,7 +76,8 @@ static void addpair(int fp, int un)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
FILE *ctbl;
|
||||
- char *tblname;
|
||||
+ const char *tblname, *rel_tblname;
|
||||
+ const char *abs_srctree;
|
||||
char buffer[65536];
|
||||
int fontlen;
|
||||
int i, nuni, nent;
|
||||
@@ -101,6 +102,16 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
+ abs_srctree = getenv("abs_srctree");
|
||||
+ if (abs_srctree && !strncmp(abs_srctree, tblname, strlen(abs_srctree)))
|
||||
+ {
|
||||
+ rel_tblname = tblname + strlen(abs_srctree);
|
||||
+ while (*rel_tblname == '/')
|
||||
+ ++rel_tblname;
|
||||
+ }
|
||||
+ else
|
||||
+ rel_tblname = tblname;
|
||||
+
|
||||
/* For now we assume the default font is always 256 characters. */
|
||||
fontlen = 256;
|
||||
|
||||
@@ -253,7 +264,7 @@ int main(int argc, char *argv[])
|
||||
#include <linux/types.h>\n\
|
||||
\n\
|
||||
u8 dfont_unicount[%d] = \n\
|
||||
-{\n\t", argv[1], fontlen);
|
||||
+{\n\t", rel_tblname, fontlen);
|
||||
|
||||
for ( i = 0 ; i < fontlen ; i++ )
|
||||
{
|
||||
--
|
||||
2.34.1
|
||||
|
||||
37
sources/meta-freescale/recipes-kernel/linux/linux-imx_6.6.bb
Normal file
37
sources/meta-freescale/recipes-kernel/linux/linux-imx_6.6.bb
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 2013-2016 (C) Freescale Semiconductor
|
||||
# Copyright 2017-2024 (C) NXP
|
||||
# Copyright 2018 (C) O.S. Systems Software LTDA.
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
SUMMARY = "Linux Kernel provided and supported by NXP"
|
||||
DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
|
||||
i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
|
||||
|
||||
require recipes-kernel/linux/linux-imx.inc
|
||||
|
||||
SRCBRANCH = "lf-6.6.y"
|
||||
LOCALVERSION = "-6.6.52-2.2.1"
|
||||
SRCREV = "90192c5d29cb650fd7f7dd9094af14eefb38837d"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-tty-vt-conmakehash-Don-t-mention-the-full-path-of-th.patch \
|
||||
"
|
||||
|
||||
# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
|
||||
# required by kernel-yocto.bbclass.
|
||||
#
|
||||
# LINUX_VERSION define should match to the kernel version referenced by SRC_URI and
|
||||
# should be updated once patchlevel is merged.
|
||||
LINUX_VERSION = "6.6.52"
|
||||
|
||||
KBUILD_DEFCONFIG:mx6-generic-bsp = "imx_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx7-generic-bsp = "imx_v7_defconfig"
|
||||
KBUILD_DEFCONFIG:mx8-generic-bsp = "imx_v8_defconfig"
|
||||
KBUILD_DEFCONFIG:mx9-generic-bsp = "imx_v8_defconfig"
|
||||
|
||||
DEFAULT_PREFERENCE = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
|
||||
58
sources/meta-freescale/recipes-kernel/linux/linux-qoriq.inc
Normal file
58
sources/meta-freescale/recipes-kernel/linux/linux-qoriq.inc
Normal file
@@ -0,0 +1,58 @@
|
||||
inherit kernel qoriq_build_64bit_kernel siteinfo
|
||||
inherit fsl-kernel-localversion
|
||||
|
||||
SUMMARY = "Linux Kernel for NXP QorIQ platforms"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS:append = " libgcc"
|
||||
# not put Images into /boot of rootfs, install kernel-image if needed
|
||||
RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
||||
|
||||
KERNEL_CC:append = " ${TOOLCHAIN_OPTIONS}"
|
||||
KERNEL_LD:append = " ${TOOLCHAIN_OPTIONS}"
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
|
||||
ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
|
||||
|
||||
# Set the PV to the correct kernel version to satisfy the kernel version sanity check
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
SCMVERSION ?= "y"
|
||||
LOCALVERSION = ""
|
||||
DELTA_KERNEL_DEFCONFIG ?= ""
|
||||
DELTA_KERNEL_DEFCONFIG:prepend:qoriq-arm64 = "lsdk.config "
|
||||
DELTA_KERNEL_DEFCONFIG:prepend:qoriq-arm = "multi_v7_lpae.config lsdk.config "
|
||||
|
||||
do_merge_delta_config[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot bison-native:do_populate_sysroot"
|
||||
do_merge_delta_config[dirs] = "${B}"
|
||||
|
||||
do_merge_delta_config() {
|
||||
# create config with make config
|
||||
oe_runmake -C ${S} O=${B} ${KERNEL_DEFCONFIG}
|
||||
|
||||
# check if bigendian is enabled
|
||||
if [ "${SITEINFO_ENDIANNESS}" = "be" ]; then
|
||||
echo "CONFIG_CPU_BIG_ENDIAN=y" >> .config
|
||||
echo "CONFIG_MTD_CFI_BE_BYTE_SWAP=y" >> .config
|
||||
fi
|
||||
|
||||
# add config fragments
|
||||
for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
|
||||
if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
|
||||
oe_runmake -C ${S} O=${B} ${deltacfg}
|
||||
elif [ -f "${WORKDIR}/${deltacfg}" ]; then
|
||||
${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
|
||||
elif [ -f "${deltacfg}" ]; then
|
||||
${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
|
||||
fi
|
||||
done
|
||||
cp .config ${WORKDIR}/defconfig
|
||||
}
|
||||
addtask merge_delta_config before do_kernel_localversion after do_patch
|
||||
|
||||
FILES:${KERNEL_PACKAGE_NAME}-image += "/boot/zImage*"
|
||||
COMPATIBLE_MACHINE = "(qoriq)"
|
||||
@@ -0,0 +1,8 @@
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
|
||||
LINUX_VERSION = "5.10.52"
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq/linux;protocol=https;nobranch=1"
|
||||
SRCREV = "a11753a89ec610768301d4070e10b8bd60fde8cd"
|
||||
|
||||
require recipes-kernel/linux/linux-qoriq.inc
|
||||
@@ -0,0 +1,2 @@
|
||||
inherit qoriq_build_64bit_kernel
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
DESCRIPTION = "skmm host driver offload data to PCIe EP and push the data en-decrypted back to application"
|
||||
SECTION = "c293-skmm-host"
|
||||
LICENSE = "BSD & GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=99803d8e9a595c0bdb45ca710f353813"
|
||||
|
||||
inherit module qoriq_build_64bit_kernel
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/skmm-host;protocol=https;nobranch=1"
|
||||
SRCREV = "d5912ebdb8d3b29b1e2df52710e8821d1ce3eb80"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
|
||||
|
||||
FILES:${PN} += "/etc/skmm/ /usr/bin/"
|
||||
|
||||
COMPATIBLE_MACHINE = "(p4080ds|t4240qds)"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
Reference in New Issue
Block a user