From patchwork Tue Jul 3 01:21:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 140860 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp581053ljj; Mon, 2 Jul 2018 18:24:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc+kH2sl+OZP/UKhZGgQqdI8//gMM6lH8Dh0g6FhDRr8/JnrNNHd9NSD/ZvGQ+hToz1xwR2 X-Received: by 2002:a62:a312:: with SMTP id s18-v6mr14074354pfe.13.1530581083251; Mon, 02 Jul 2018 18:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581083; cv=none; d=google.com; s=arc-20160816; b=CvUHYfLRWI2Y6Epv4Dfds08gXWKi8RNMUXt1C9bpWt7vPONn1i/quwRQUagW29bwSG 0Al8m42QKEPLSRWl62hXtLOtsypAT+OXozYh+9bIsiTwXaP7WPkosMGRmetgF78UR6Z+ ptpIb914ceax8TJ60PF4dsWUk0YRfve05Th9Xij/eOnJdmEuvn8sr5tBvWkjsMHnJuDg pCXL1BLsvdRGng6vzouA0zwpLe5pMMQZaXrtHPQEcITB3JoiBTZV03A8Ed7Uw7y1IM2N 1CkXWbgNAz2RNP1lehuHymqTn8vTqp9t+60KeTYvIo1kisqxCzc1wzVfIJxBIGXHMGGp wXrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=N9EXVCIJOLVxm2JVzHsecjGPLiJubDV/StdikSRFzdg=; b=GyFY+qapHk+Iyxu3I0jquIrQBB7FKDt1hfpEnEQT8FEFMZAgoS15GMHvINv4rynpXL ln4QVvXa53ICm05shkEkVriqN0lJCiCnU+hikjiUaAxn12xrD73X0Mgb+Znt+G0CAsKL dz9JlvX6c6Qz48dt9oTGt5KKtnkIyJC2ZtqnPML09UewCkYX4qF27LdeSQ30PYhgVhk6 Ol1fpFSU3jqUJncLABraQ60x06aokxqKdzI1WqFOA7l/ZVUgDEUPwNElirpW5dWjZfkx rJTTTrvmwXs+ZraXLnh1kchLBDux2AyjpvjZDq3N8ArJr15iRpq/QBvKIP6T8YWwSBKZ 7lRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rSN8E8tE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e37-v6si17708791plb.400.2018.07.02.18.24.43; Mon, 02 Jul 2018 18:24:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rSN8E8tE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753715AbeGCBYl (ORCPT + 31 others); Mon, 2 Jul 2018 21:24:41 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:46553 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeGCBYg (ORCPT ); Mon, 2 Jul 2018 21:24:36 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w631MU1o030863; Tue, 3 Jul 2018 10:22:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w631MU1o030863 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530580952; bh=N9EXVCIJOLVxm2JVzHsecjGPLiJubDV/StdikSRFzdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rSN8E8tEUJWwBuH+4+H1SebS283QsLAeq8ZEYW4/0B7y8IH2dlsTeHX00wWqXGeYF VZgLg0J5iBck6aGrpmJheEO8e+cfIYudGZr0GtluYRXzMAE9L1h+4oop5vL3Q7uApR OErzBKW/MLvBDibcQ1dClfqh44qg6hZ2Jnki3+4ASsstnCpL1JBESm3sd7JVimdQ5T Z5tCVhsnj6bkA4iKi/0O8VR+Lca97CgKOnh4OMmonqaLJwYfYp2jRxNhE2vVvO9u/l a3dUOekqvv7mEhrxetnbANx23nmALTnGUAQrMWCbD9XPclmNY2hLKtnNzVkjkZRbj/ bZj9NT+jpAOQw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch Cc: Sam Ravnborg , Nicholas Piggin , Masahiro Yamada , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: add endianness option to LDFLAGS instead of LD Date: Tue, 3 Jul 2018 10:21:59 +0900 Message-Id: <1530580921-23340-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the recent syntax extension, Kconfig is now able to evaluate the compiler / toolchain capability. However, accumulating flags to 'LD' is not compatible with the way it works; 'LD' must be passed to Kconfig to call $(ld-option,...) from Kconfig files. If you tweak 'LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- arch/arm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/arch/arm/Makefile b/arch/arm/Makefile index fc26c3d..62ebeae 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -46,12 +46,12 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__ARMEB__ AS += -EB -LD += -EB +LDFLAGS += -EB else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__ARMEL__ AS += -EL -LD += -EL +LDFLAGS += -EL endif # From patchwork Tue Jul 3 01:22:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 140861 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp581153ljj; Mon, 2 Jul 2018 18:24:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpftrzWGNMqilkov82BEudaGpSjOoxKPFeIwJ+ubgw/1Sn3ytdmL1FXDJPAoo1kkqTAgpC+6 X-Received: by 2002:aa7:8591:: with SMTP id w17-v6mr10362413pfn.77.1530581093804; Mon, 02 Jul 2018 18:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581093; cv=none; d=google.com; s=arc-20160816; b=eElpTrB3wor3FbyREIHwiIckTXB9I9vesi6mJtLyWK85SPcOZE602wC3tg8F1XausL jbmlLkxigvgUNe2KfeF81PiGT11ZJW7PpRJ9gG9JDucuJqsc1PXywilUwDOFjXxW2YOJ z7oHTCVhW/ZaDhmSQoeuYlXi5rty1HdM0PHIq3JO7N1LoxgKeWh8/GWHtQaP0J06RwPS gMI93um/wyztP9Q5QIebbeeQnE/AT/ntsrztPOimqmqJgMYtlLGDk4fVEFR7ceak9cs8 HVGwUD5p5pUUPvZO6DkW6fd23Ea1agymEA3f2n76YFxwewCiLDuhZ4IjDprK9LrIaA1M +KwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=i6hsHB97N2f1b/yfSArAmxRGkQft5dXH4u1KshjXY7Q=; b=V8sHDuwR4nNpB9pF6SBlSsVVBydsnNgtJkIFGNgvCDMX0DE+0bQvog7o0sjFiYEmxd /ZHiChl2hDpq/Keu0icAChM92Fw44JfgSOrlmoH80n4U9f1S7/czFOnSthEzv5MBrA4w PtcvxghLiLHs79DSGbuPQTzrE2faS9YKjKX0+8lwfEDBX9Il6h77VCy0EqGXU0t1KNno lr4iQl6TS/iJ7lu0q0Ew4xEwJgZp6VbZEPPaLVDJ6KsNS5PgZKMBC9gqvp/TYFScs6qU YfJhz04Zk392eC7qgXDyK4r1s77NxC+Vd0OfHenEz+6B10DVfolcWN7gZH942PBR+rDz bNGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=q3+6FY44; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd3-v6si16426093plb.171.2018.07.02.18.24.53; Mon, 02 Jul 2018 18:24:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=q3+6FY44; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932234AbeGCBYv (ORCPT + 31 others); Mon, 2 Jul 2018 21:24:51 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:46643 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753643AbeGCBYk (ORCPT ); Mon, 2 Jul 2018 21:24:40 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w631MU1p030863; Tue, 3 Jul 2018 10:22:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w631MU1p030863 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530580953; bh=i6hsHB97N2f1b/yfSArAmxRGkQft5dXH4u1KshjXY7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q3+6FY44XdwqpWZheIdtLgvAk8jpKGmpfoYjAyd5JM2BQbxpaiJpGrpf4OfsbaIny diReV7RZzrg3knOHP95YgPelsHd66P/qfzW6+h0nByVksSvTU6oECqdkWXKmQSrLUI iLZnrammspqlgsYFXEju16/EDhTWKJV4ODgOqLhJlKh3a1RYJhKH1U5i1CCIyQuwZZ 20BjC8tz+0v8kdl1w5eInFqngv5Dhe8iR4T983vv7JVs0ljhnGVpFczMlwVUxm8irh kuPZq81j82mGlFMlWT5xzP3KlKZT4StXZ61lv9uYLrWkUFHpXPVzaoUZlpj04rG+J2 zuBWQRFTD3kgA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch Cc: Sam Ravnborg , Nicholas Piggin , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: add endianness option to LDFLAGS instead of LD Date: Tue, 3 Jul 2018 10:22:00 +0900 Message-Id: <1530580921-23340-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the recent syntax extension, Kconfig is now able to evaluate the compiler / toolchain capability. However, accumulating flags to 'LD' is not compatible with the way it works; 'LD' must be passed to Kconfig to call $(ld-option,...) from Kconfig files. If you tweak 'LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- arch/arm64/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.7.4 Acked-by: Will Deacon diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 4527226..8f73da3 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -60,15 +60,13 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__AARCH64EB__ AS += -EB -LD += -EB -LDFLAGS += -maarch64linuxb +LDFLAGS += -EB -maarch64linuxb UTS_MACHINE := aarch64_be else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__AARCH64EL__ AS += -EL -LD += -EL -LDFLAGS += -maarch64linux +LDFLAGS += -EL -maarch64linux UTS_MACHINE := aarch64 endif From patchwork Tue Jul 3 01:22:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 140862 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp581314ljj; Mon, 2 Jul 2018 18:25:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIaGi54dzH0CLaMB6kbpCFX0h3Du+UxCYrEzh+MzDR5VgO/MM8GpPHr1sJUu/Sj2gzQuwDL X-Received: by 2002:a17:902:381:: with SMTP id d1-v6mr27956764pld.309.1530581107837; Mon, 02 Jul 2018 18:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530581107; cv=none; d=google.com; s=arc-20160816; b=SvZlkKHPqgpzouQ61YpgxYaaMm42S9nJUJ2kLnzzei2V3/06zzwUKK7PIUV7HzIkHk 23a9hHatxlzvgLufE9gQUZtLBRnaxFtnKjjyu7RVm1C4aSqM/Zx+poYf7jmyMVkUD0i/ vSyJMlspmMDLEYV+/vxwlbvn4KsEBlBdPDUKW4E8I+5YYr8HgmBt8ptVCSBg9FpHKUgz qpyg4Dwjc9sq12ADSA5Uj7EvQd9y1og5QNv47pZqXmRSypmNtnuZMKpbgDf530oSXACP h3Zznr+e529syC9kVP9NLbvIpx8nsVsLvH/Z3dLzYufA102BYOhMMs4qb5oUoUBij8tI q51Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=zQEMhk9FQiWmNIMha6n4KD51gYhzRbPo/CA6JmnJjyU=; b=J083saXeKf4PQ0u1PootFg659rA5jIUHS3Q5GwdzbhcDXO0+enMJhIfuU7Kq8FWsyI 6JEDMsJ4C6SdR+1EG6CWKDjh49/2Q6SuzT8D1g0LgZYnTltbaop64UrTey7IdQpEFSL7 KD4SdfBCbsS6qNUoTxzfJiekg6p+QBKm68SWmQZvVJtctroLnmceXlMHL34lhUKQHP59 eHBJEuDedchf/fDk8aMxwNKpX+JB+IhlyJHvSUvnnm5lEYH7dql3WHlYRoTL+oiP6l5p PLAyEFR+LBJI2NKFIBfJvpcliSvQELOG8D8lqZTJ1UqF1r0rXwcEQbtNCSf4keHk80Gu bzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=19n8IXRG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7-v6si11489695pgc.233.2018.07.02.18.25.07; Mon, 02 Jul 2018 18:25:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=19n8IXRG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932351AbeGCBZF (ORCPT + 31 others); Mon, 2 Jul 2018 21:25:05 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:46619 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753639AbeGCBYj (ORCPT ); Mon, 2 Jul 2018 21:24:39 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w631MU1q030863; Tue, 3 Jul 2018 10:22:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w631MU1q030863 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530580954; bh=zQEMhk9FQiWmNIMha6n4KD51gYhzRbPo/CA6JmnJjyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=19n8IXRGQ3WuqK+ya3EilbxmR9BNxuULE+SV5CBszfzsbk13mA8S9Guf6tFKtAYjf QoeYXdn7rlCk3+N68SHiNFqcxuGM8ngDyFNXSr6lcryS3KNE/gDZJCyCRa6lwciG4n SzwZHqRF90RzIMjwJzq9BGXy3zKgitOfJ11zTZx3eII5lUaQqXug1ss97ZvJGzQlsp 79A1a2g+V/r0sqUV73zQGOvS8oiletU69DzpASbrJwF26bMCKVBrOcvMLVDnVlJ0e8 of7A9jG5bgGpsgITSea0uuSOyzRrw9npVZ0975+WQGKHPzU+dhK15TWgRTNjkxoWN5 gqhdDz1+6j2Kw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch Cc: Sam Ravnborg , Nicholas Piggin , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD Date: Tue, 3 Jul 2018 10:22:01 +0900 Message-Id: <1530580921-23340-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> References: <1530580921-23340-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the recent syntax extension, Kconfig is now able to evaluate the compiler / toolchain capability. However, accumulating flags to 'LD' is not compatible with the way it works; 'LD' must be passed to Kconfig to call $(ld-option,...) from Kconfig files. If you tweak 'LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- arch/microblaze/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index d269dd4b..7333036 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -40,11 +40,11 @@ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare ifdef CONFIG_CPU_BIG_ENDIAN KBUILD_CFLAGS += -mbig-endian KBUILD_AFLAGS += -mbig-endian -LD += -EB +LDFLAGS += -EB else KBUILD_CFLAGS += -mlittle-endian KBUILD_AFLAGS += -mlittle-endian -LD += -EL +LDFLAGS += -EL endif CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))