Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B5B2FE00945; Sun, 8 Feb 2015 13:36:54 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (picmaster[at]mail.bg) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [193.201.172.118 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mx2.mail.bg (mx2.mail.bg [193.201.172.118]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0169FE00596 for ; Sun, 8 Feb 2015 13:36:52 -0800 (PST) Received: from localhost.localdomain (unknown [93.152.143.60]) by mx2.mail.bg (Postfix) with ESMTPA id EBC9660004F2; Sun, 8 Feb 2015 23:36:50 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mail.bg; s=default; t=1423431411; bh=jV85l8gVDFVACrf6WqcUnwvrft1vFX3a54lK5HJf8GA=; h=From:To:Cc:Subject:Date:Message-Id; b=3hxarh5JyVXxKhjhBBwVFjXpR77sTj1RJLfB6kTckmkJcyupvncy9bj/nOH7VyoP2 wHa1mL+7heuXXFvi/6ZvGRjvE620yUllaQgt3gISDoVZQpt14z4tmDLqgyhGlysR47 zSdlQwkxTdnwtceRBtVi0KLr6NWMFWNUwQAtjh8k= From: picmaster@mail.bg To: meta-freescale@yoctoproject.org Date: Sun, 8 Feb 2015 23:36:49 +0200 Message-Id: <1423431409-18328-1-git-send-email-picmaster@mail.bg> X-Mailer: git-send-email 1.7.10.4 Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, wally.yeh@atrustcorp.com Subject: [meta-fsl-arm][PATCH v2] linux-imx: Disable imx6sl-specific code when imx6sl SOC support is disabled X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2015 21:36:54 -0000 From: Nikolay Dimitrov Currently the build fails when CONFIG_SOC_IMX6SL is disabled, due to some hard-coded stuff. The patch purpose is to handle enabling/disabling this config option. Signed-off-by: Nikolay Dimitrov --- ...Disable-imx6sl-specific-code-when-imx6sl-.patch | 52 ++++++++++++++++++++ recipes-kernel/linux/linux-imx_3.10.53.bb | 4 +- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux-imx-3.10.53/0002-ARM-imx6sl-Disable-imx6sl-specific-code-when-imx6sl-.patch diff --git a/recipes-kernel/linux/linux-imx-3.10.53/0002-ARM-imx6sl-Disable-imx6sl-specific-code-when-imx6sl-.patch b/recipes-kernel/linux/linux-imx-3.10.53/0002-ARM-imx6sl-Disable-imx6sl-specific-code-when-imx6sl-.patch new file mode 100644 index 0000000..cbd0b58 --- /dev/null +++ b/recipes-kernel/linux/linux-imx-3.10.53/0002-ARM-imx6sl-Disable-imx6sl-specific-code-when-imx6sl-.patch @@ -0,0 +1,52 @@ +From 2e9ea279e6c4e94c8a760355f80461599d2ba5aa Mon Sep 17 00:00:00 2001 +From: Nikolay Dimitrov +Date: Sun, 8 Feb 2015 22:18:09 +0200 +Subject: [PATCH] ARM: imx6sl: Disable imx6sl-specific code when imx6sl SOC + support is disabled + +Currently the build fails when CONFIG_SOC_IMX6SL is disabled, due to some +hard-coded stuff. The patch purpose is to handle enabling/disabling this +config option. + +Signed-off-by: Nikolay Dimitrov +--- + arch/arm/mach-imx/Makefile | 3 ++- + arch/arm/mach-imx/mxc.h | 4 ++++ + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile +index 482c310..ae89b39 100644 +--- a/arch/arm/mach-imx/Makefile ++++ b/arch/arm/mach-imx/Makefile +@@ -112,7 +112,8 @@ ifeq ($(CONFIG_ARM_IMX6_CPUFREQ),y) + obj-y += busfreq-imx6.o + obj-$(CONFIG_SOC_IMX6Q) += ddr3_freq_imx6.o busfreq_ddr3.o + obj-$(CONFIG_SOC_IMX6SL) += lpddr2_freq_imx6.o busfreq_lpddr2.o imx6sl_wfi.o +-obj-$(CONFIG_SOC_IMX6SX) += ddr3_freq_imx6sx.o lpddr2_freq_imx6sx.o imx6sx_low_power_idle.o ++obj-$(CONFIG_SOC_IMX6SX) += ddr3_freq_imx6sx.o lpddr2_freq_imx6.o \ ++ lpddr2_freq_imx6sx.o busfreq_lpddr2.o imx6sx_low_power_idle.o + + endif + +diff --git a/arch/arm/mach-imx/mxc.h b/arch/arm/mach-imx/mxc.h +index 88c4bce..9e412ee 100644 +--- a/arch/arm/mach-imx/mxc.h ++++ b/arch/arm/mach-imx/mxc.h +@@ -161,10 +161,14 @@ static inline bool cpu_is_imx6sx(void) + return __mxc_cpu_type == MXC_CPU_IMX6SX; + } + ++#ifdef CONFIG_SOC_IMX6SL + static inline bool cpu_is_imx6sl(void) + { + return __mxc_cpu_type == MXC_CPU_IMX6SL; + } ++#else ++# define cpu_is_imx6sl() (0) ++#endif + + static inline bool cpu_is_imx6dl(void) + { +-- +1.7.10.4 + diff --git a/recipes-kernel/linux/linux-imx_3.10.53.bb b/recipes-kernel/linux/linux-imx_3.10.53.bb index f75aa21..b02b3da 100644 --- a/recipes-kernel/linux/linux-imx_3.10.53.bb +++ b/recipes-kernel/linux/linux-imx_3.10.53.bb @@ -14,6 +14,8 @@ SRCBRANCH = "imx_3.10.53_1.1.0_ga" LOCALVERSION = "-1.1.0_ga" SRCREV = "496fbe0b831b77d0ea0a2c7bbd1d58820b3a01f7" -SRC_URI += "file://0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch" +SRC_URI += "file://0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch \ + file://0002-ARM-imx6sl-Disable-imx6sl-specific-code-when-imx6sl-.patch \ +" COMPATIBLE_MACHINE = "(mx6)" -- 1.7.10.4