QorIQ patches
cover QorIQ patches
From: Ting Liu <[email protected]>
Based on the below commit of master-next branch:
0022aaa cst: add bash in RDEPENDS_cst
Fabio Berton (1):
fsl-kernel-localversion: Make sure build dir exist before create
.config
Ting Liu (8):
linux-qoriq: fix build path of the dtb
c293pcie: c293pcie_36b.dtb -> c293pcie.dtb qoriq-base.inc: set PREFERRED_VERSION_testfloat to 2a
usdpaa-apps: obey LDFLAGS to fix GNU_HASH error
pme-tools: obey LDFLAGS to fix GNU_HASH error
skmm-ep: obey LDFLAGS to fix GNU_HASH error
ipc-ust: obey LDFLAGS to fix GNU_HASH error
auto-resp: skip ldflags check
classes/fsl-kernel-localversion.bbclass | 1 + conf/machine/c293pcie.conf | 4 +- conf/machine/include/qoriq-base.inc | 1 + .../recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb | 2 +- .../ipc-ust/Makefile-use-LDFLAGS-if-set.patch | 86 ++++++++++++++++++++++ recipes-extended/ipc-ust/ipc-ust_git.bb | 4 +- recipes-extended/pme-tools/pme-tools_git.bb | 2 +- recipes-extended/skmm-ep/skmm-ep_git.bb | 2 +- .../kernel-modules/kernel-module-ar_git.bb | 2 +- ...x-build-of-the-dtb-embedded-kernel-images.patch | 45 +++++++++++ recipes-kernel/linux/linux-qoriq_4.1.bb | 1 + 11 files changed, 142 insertions(+), 8 deletions(-) create mode 100644 recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch create mode 100644 recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch
Signature · 1 line
1.9.2
PATCH 1/9 linux-qoriq: fix build path of the dtb
From: Ting Liu <[email protected]>
--- ...x-build-of-the-dtb-embedded-kernel-images.patch | 45 ++++++++++++++++++++++ recipes-kernel/linux/linux-qoriq_4.1.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch
recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 4680c9d50637f78338e786c920aef6c171c7cc00 Mon Sep 17 00:00:00 2001 +From: Alessio Igor Bogani <[email protected]> +Date: Mon, 18 Apr 2016 08:36:19 +0200 +Subject: powerpc/fsl: Fix build of the dtb embedded kernel images + +Commit dc37374b9c833 ("powerpc/fsl: Move Freescale device tree files +into fsl folder") moved a lot of device tree files into fsl directory, +fixing Makefile for cuImage target only. Unfortunately there are other +targets which require embedding a device tree into the kernel image +(e.g. dtbImage.%). So use a more generic approach. + +Signed-off-by: Alessio Igor Bogani <[email protected]> +[scottwood: cleaned up commit message] +Signed-off-by: Scott Wood <[email protected]> +--- + arch/powerpc/boot/Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile +index 6116510..8fe78a3 100644 +--- a/arch/powerpc/boot/Makefile ++++ b/arch/powerpc/boot/Makefile +@@ -362,9 +362,6 @@ $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) + $(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) + $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb) + +-$(obj)/cuImage.%: vmlinux $(obj)/fsl/%.dtb $(wrapperbits) +- $(call if_changed,wrap,cuboot-$*,,$(obj)/fsl/$*.dtb) +- + $(obj)/simpleImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) + $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) + +@@ -381,6 +378,9 @@ $(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) + $(obj)/%.dtb: $(src)/dts/%.dts FORCE + $(call if_changed_dep,dtc) + ++$(obj)/%.dtb: $(src)/dts/fsl/%.dts FORCE ++ $(call if_changed_dep,dtc) ++ + # If there isn't a platform selected then just strip the vmlinux. + ifeq (,$(image-y)) + image-y := vmlinux.strip +-- +cgit v0.12 +
recipes-kernel/linux/linux-qoriq_4.1.bb +1 -0
@@ -12,6 +12,7 @@ SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v2.0.x \ file://0003-use-static-inline-in-ARM-lifeboot.h.patch \ file://fix-the-compile-issue-under-gcc6.patch \ file://only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch \ + file://powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch \ " SRCREV = "bd51baffc04ecc73f933aee1c3a37c8b44b889a7"
Signature · 1 line
1.9.2
PATCH 2/9 fsl-kernel-localversion: Make sure build dir exist before create .config
In reply to [email protected]From: Fabio Berton <[email protected]>
Create directory ${B} before do_preconfigure task creates file ${B}/.config
Fix error:
../fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/linux-fslc-imx/ 4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0/temp/run.do_preconfigure.16220:
line 109: ../fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/ linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0/build/.config:
No such file or directory
--- classes/fsl-kernel-localversion.bbclass | 1 + 1 file changed, 1 insertion(+)
classes/fsl-kernel-localversion.bbclass +1 -0
@@ -23,6 +23,7 @@ kernel_conf_variable() { } do_preconfigure() { + mkdir -p ${B} echo "" > ${B}/.config CONF_SED_SCRIPT=""
Signature · 1 line
1.9.2
PATCH 3/9 c293pcie: c293pcie_36b.dtb -> c293pcie.dtb
In reply to [email protected]From: Ting Liu <[email protected]>
--- conf/machine/c293pcie.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
conf/machine/c293pcie.conf +1 -3
@@ -16,10 +16,8 @@ UBOOT_CONFIG[spi] = "C29XPCIE_SPIFLASH_config" UBOOT_CONFIG[secboot] = "C29XPCIE_NOR_SECBOOT_config" UBOOT_CONFIG[spi-secboot] = "C29XPCIE_SPIFLASH_SECBOOT_config" - -KERNEL_DEVICETREE ?= "c293pcie_36b.dtb" +KERNEL_DEVICETREE ?= "c293pcie.dtb" KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_defconfig" JFFS2_ERASEBLOCK = "0x10000" - USE_VT ?= "0"
Signature · 1 line
1.9.2
PATCH 4/9 qoriq-base.inc: set PREFERRED_VERSION_testfloat to 2a
In reply to [email protected]From: Ting Liu <[email protected]>
testfloat 2a has specific updates for qoriq ppc boards. Currently no plan to refresh them to 3b release.
--- conf/machine/include/qoriq-base.inc | 1 + 1 file changed, 1 insertion(+)
conf/machine/include/qoriq-base.inc +1 -0
@@ -10,6 +10,7 @@ PREFERRED_PROVIDER_u-boot ?= "u-boot-qoriq" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-qoriq" PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq" PREFERRED_PROVIDER_qemu = "qemu-qoriq" +PREFERRED_VERSION_testfloat = "2a" IMAGE_CLASSES += "image_types_uboot"
Signature · 1 line
1.9.2
PATCH 5/9 usdpaa-apps: obey LDFLAGS to fix GNU_HASH error
In reply to [email protected]From: Ting Liu <[email protected]>
--- .../openembedded-layer/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dynamic-layers/openembedded-layer/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb +1 -1
@@ -21,7 +21,7 @@ S = "${WORKDIR}/git" WRAP_ARCH ?= "${TARGET_ARCH}" WRAP_ARCH_ls1043ardb = "arm64" -EXTRA_OEMAKE = 'CC="${CC}" LD="${LD}" AR="${AR}" ARCH="${WRAP_ARCH}"' +EXTRA_OEMAKE = 'CC="${CC}" LD="${LD}" AR="${AR}" ARCH="${WRAP_ARCH}" EXTRA_LDFLAGS="${LDFLAGS}"' SOC ?= "P4080" SOC_b4 = "B4860"
Signature · 1 line
1.9.2
PATCH 6/9 pme-tools: obey LDFLAGS to fix GNU_HASH error
In reply to [email protected]From: Ting Liu <[email protected]>
--- recipes-extended/pme-tools/pme-tools_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/pme-tools/pme-tools_git.bb +1 -1
@@ -9,7 +9,7 @@ SRCREV = "5b6622e127ac2f3e221cc0395985ac90e2ed9533" S = "${WORKDIR}/git" -EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} USE_LTIB=1 LTIB_LIB_PATH=${STAGING_LIBDIR} SYSROOT=${STAGING_DIR_TARGET} CROSS_COMPILE=${HOST_PREFIX}" +EXTRA_OEMAKE = 'ARCH=${TARGET_ARCH} USE_LTIB=1 LTIB_LIB_PATH=${STAGING_LIBDIR} SYSROOT=${STAGING_DIR_TARGET} CROSS_COMPILE=${HOST_PREFIX} EXTRA_LDFLAGS="${LDFLAGS}"' EXTRA_CFLAGS = "-Wno-unused-but-set-parameter -Wno-enum-compare -Wno-unused-but-set-variable" do_compile_prepend() { sed -i '/rec_yyget_leng/d' compilers/regularExpression/engine/pmrec.lex
Signature · 1 line
1.9.2
PATCH 7/9 skmm-ep: obey LDFLAGS to fix GNU_HASH error
In reply to [email protected]From: Ting Liu <[email protected]>
--- recipes-extended/skmm-ep/skmm-ep_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/skmm-ep/skmm-ep_git.bb +1 -1
@@ -16,7 +16,7 @@ SRCREV = "bbf1ba00fcf407252a4c2e56783e63861088f9cb" S = "${WORKDIR}/git" -EXTRA_OEMAKE = 'ARCH=${TARGET_ARCH} MACHINE=${MACHINE}' +EXTRA_OEMAKE = 'ARCH=${TARGET_ARCH} MACHINE=${MACHINE} EXTRA_LDFLAGS="${LDFLAGS}"' export LIBEDIT_CFLAGS = "`pkg-config --cflags libedit`" export LIBEDIT_LDFLAGS = "`pkg-config --libs --static libedit`"
Signature · 1 line
1.9.2
PATCH 8/9 ipc-ust: obey LDFLAGS to fix GNU_HASH error
In reply to [email protected]From: Ting Liu <[email protected]>
--- .../ipc-ust/Makefile-use-LDFLAGS-if-set.patch | 86 ++++++++++++++++++++++ recipes-extended/ipc-ust/ipc-ust_git.bb | 4 +- 2 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch
recipes-extended/ipc-ust/ipc-ust/Makefile-use-LDFLAGS-if-set.patch new file +86 -0
@@ -0,0 +1,86 @@ +From 4c0accfce78610e21f5d9b75725a0b9fa2c6cfb9 Mon Sep 17 00:00:00 2001 +From: Ting Liu <[email protected]> +Date: Fri, 12 Aug 2016 10:41:51 +0800 +Subject: [PATCH] Makefile: use LDFLAGS if set + +Signed-off-by: Ting Liu <[email protected]> +--- + dsp_boot/Makefile | 6 +++--- + fsl_shm/Makefile | 4 ++-- + ipc/Makefile | 14 +++++++------- + 3 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/dsp_boot/Makefile b/dsp_boot/Makefile +index 8f30076..59eb648 100644 +--- a/dsp_boot/Makefile ++++ b/dsp_boot/Makefile +@@ -20,12 +20,12 @@ endif + all: fsl_shm lib_dsp_boot dsp_bt + lib_dsp_boot: + $(CC) -c ./libdspboot.c $(CFLAGS) -o ./libdspboot.o +- $(CC) -shared -fPIC ./libdspboot.o -o libdspboot.so ++ $(CC) -shared -fPIC $(LDFLAGS) ./libdspboot.o -o libdspboot.so + $(AR) rcs libdspboot.a ./libdspboot.o ../fsl_shm/lib/lg_shm.o + fsl_shm: +- $(CC) -c $(CFLAGS) $(SOURCES_FSL_SHM) ++ $(CC) -c $(CFLAGS) $(LDFLAGS) $(SOURCES_FSL_SHM) + dsp_bt: +- $(CC) $(CFLAGS) $(SOURCES) $(SOURCES_FSL_SHM) -L. -ldspboot -L../ipc -lipc -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCES) $(SOURCES_FSL_SHM) -L. -ldspboot -L../ipc -lipc -o $@ + cp libdspboot.so ../ipc/ -v + clean: + rm -rf *.o dsp_bt libdspboot.so *.a +diff --git a/fsl_shm/Makefile b/fsl_shm/Makefile +index 0042055..0b9f581 100644 +--- a/fsl_shm/Makefile ++++ b/fsl_shm/Makefile +@@ -4,11 +4,11 @@ CFLAGS=-fPIC -I ./lib -I ./include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -W + + all: lg_shm_lib lg_shm_test + lg_shm_lib: +- $(CC) -c ./lib/lg_shm.c $(CFLAGS) -o ./lib/lg_shm.o ++ $(CC) -c ./lib/lg_shm.c $(CFLAGS) $(LDFLAGS) -o ./lib/lg_shm.o + $(AR) rcs liblg_shm.a ./lib/lg_shm.o + + lg_shm_test: +- $(CC) ./test/app.c $(CFLAGS) -L. -llg_shm -o app ++ $(CC) ./test/app.c $(CFLAGS) $(LDFLAGS) -L. -llg_shm -o app + + clean: + rm -rf app ./lib/*.o *.a +diff --git a/ipc/Makefile b/ipc/Makefile +index 06599f6..cbb63d6 100644 +--- a/ipc/Makefile ++++ b/ipc/Makefile +@@ -29,21 +29,21 @@ ipc_lib: + $(CC) -c ./lib/fsl_user_dma.c $(CFLAGS) -o ./lib/fsl_user_dma.o + $(CC) -c ./lib/fsl_ipc_lock.c $(CFLAGS) -o ./lib/fsl_ipc_lock.o + $(CC) -c ../dsp_boot/libdspboot.c $(CFLAGS2) -o ../dsp_boot/libdspboot.o +- $(CC) -shared -fPIC -lpthread ./lib/fsl_user_dma.o ./lib/fsl_ipc_channel.o ./lib/fsl_ipc_lock.o ../dsp_boot/libdspboot.o -L../fsl_shm -llg_shm -o libipc.so ++ $(CC) -shared -fPIC -lpthread $(LDFLAGS) ./lib/fsl_user_dma.o ./lib/fsl_ipc_channel.o ./lib/fsl_ipc_lock.o ../dsp_boot/libdspboot.o -L../fsl_shm -llg_shm -o libipc.so + $(AR) rcs libipc.a ./lib/fsl_ipc_channel.o ./lib/fsl_ipc_lock.o ../dsp_boot/libdspboot.o ./lib/fsl_user_dma.o ../fsl_shm/lib/lg_shm.o + + mem_lib: + $(CC) -c ./lib/fsl_usmmgr.c $(CFLAGS) -o ./lib/fsl_usmmgr.o + $(CC) -c ./lib/fsl_ipc_lock.c $(CFLAGS) -o ./lib/fsl_ipc_lock.o +- $(CC) -shared -fPIC ./lib/fsl_usmmgr.o ./lib/fsl_ipc_lock.o -L../fsl_shm -llg_shm -o libmem.so ++ $(CC) -shared -fPIC $(LDFLAGS) ./lib/fsl_usmmgr.o ./lib/fsl_ipc_lock.o -L../fsl_shm -llg_shm -o libmem.so + $(AR) rcs libmem.a ./lib/fsl_usmmgr.o ./lib/fsl_ipc_lock.o ../fsl_shm/lib/lg_shm.o + + ipc_test: +- $(CC) ./test/ipc_test.c $(CFLAGS) -L. -lipc -lmem -o ipc_test +- $(CC) ./test/ipc_test67.c $(CFLAGS) -L. -lipc -lmem -o ipc_test67 +- $(CC) ./test/dsp_recover.c $(CFLAGS) -L. -lipc -lmem -o dsp_recover +- $(CC) ./test/l1_defense_app.c $(CFLAGS) -L. -lipc -lmem -o l1d_app +- $(CC) ./test/fsl_dump_memory.c $(CFLAGS) -L. -lipc -lmem -o dump_mem ++ $(CC) ./test/ipc_test.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o ipc_test ++ $(CC) ./test/ipc_test67.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o ipc_test67 ++ $(CC) ./test/dsp_recover.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o dsp_recover ++ $(CC) ./test/l1_defense_app.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o l1d_app ++ $(CC) ./test/fsl_dump_memory.c $(CFLAGS) $(LDFLAGS) -L. -lipc -lmem -o dump_mem + + clean: + rm -rf dump_mem ipc_test ipc_test67 dsp_recover l1d_app ./lib/*.o *.a *.so +-- +1.9.2 +
recipes-extended/ipc-ust/ipc-ust_git.bb +3 -1
@@ -3,7 +3,9 @@ DESCRIPTION = "DSP boot application and ipc test application" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10" -SRC_URI = "git://git.freescale.com/ppc/sdk/ipc.git;branch=sdk-v2.0.x" +SRC_URI = "git://git.freescale.com/ppc/sdk/ipc.git;branch=sdk-v2.0.x \ + file://Makefile-use-LDFLAGS-if-set.patch \ +" SRCREV = "74d662707558290f070f9589177db730444bc435" S = "${WORKDIR}/git"
Signature · 1 line
1.9.2
PATCH 9/9 auto-resp: skip ldflags check
In reply to [email protected]From: Ting Liu <[email protected]>
--- recipes-kernel/kernel-modules/kernel-module-ar_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/kernel-modules/kernel-module-ar_git.bb +1 -1
@@ -26,5 +26,5 @@ do_install(){ } FILES_${PN} += "${bindir}/" - +INSANE_SKIP_${PN} = "ldflags" COMPATIBLE_MACHINE = "(t1040|t1042)"
Signature · 1 line
1.9.2