Received: by 10.192.165.148 with SMTP id m20csp271105imm; Fri, 20 Apr 2018 06:35:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+H0XyFNhPxDdPAFMP2p5e107tpw22rUpbbWhsp1jFE1cnlkB91saxhdj/BZzEp31MytmK X-Received: by 10.101.93.137 with SMTP id f9mr8580762pgt.148.1524231300232; Fri, 20 Apr 2018 06:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524231300; cv=none; d=google.com; s=arc-20160816; b=M+XRCjndGnfltTytnfNPGF0p9kqcZYrqFUF+S48iTMAjeBm3+mNXphmF8SPk7BmH+U iMp+6Lrt+NzCepwPWN8ogwxdeyHknbFx8E0V8lvwPJl8VdsHqXxRWWBRx8DBGIC3jWmq GTvHleB5VtDwAT2vZfP+hed9fMKQ74E40Ngj7GIHzlrcU1RtV/bc5wXPoFY8smbdcK9J IzPZtLGMDDR6XOzdJZKqSvVG4jDdl2Dzqr2gjUrs2WD75397ZJjbbyFd4INWrb6zcwCG cVY67EyrFZymr6lsKI++Z4hHYW/DwdeJiNSIuM8j0GcivvVmHUF3w/VeiOuKlBqQLKnp nyIg== 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:references :in-reply-to:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=uCJ9ht+S8onD19uirMiAtEup3yGm7KUQdji6soaoQLA=; b=eZI7nwZcgoEXcdwzEKfTZKYDozUeXvjJK+3meUPVzpd7KBHWBDmBWB5q1KgBWMe6Qz 6iRRcAEbfJYLzAg00kxFtLGfz1cPXATiMpBNLs3/cGqBrtmCqKKsG/gKKxI1l8hh1qxa rt/9kzOYurKXvZ3u4ec2wKQMklpDJkHhVsIhyN4C/+PQ7X1TFJRy30coafhypqo0ewfd DYd5C54d8A1DTom4MX5XmsTqFj6BZfgfp1vvD4twKOifqDgo77Pvkk4OLcOBcraxBv0y MjKSb81SJUjkJ+ZBvHGvZ8t79/j1EpyeHieYp+9/+XY7e8e1/22LjGzAG/gBA0PDi8fB 0Ofw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WTEO2wdF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si4960377pgc.66.2018.04.20.06.34.45; Fri, 20 Apr 2018 06:35:00 -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=@gmail.com header.s=20161025 header.b=WTEO2wdF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755255AbeDTNdY (ORCPT + 99 others); Fri, 20 Apr 2018 09:33:24 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:46954 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755242AbeDTNdU (ORCPT ); Fri, 20 Apr 2018 09:33:20 -0400 Received: by mail-pf0-f193.google.com with SMTP id h69so4302651pfe.13 for ; Fri, 20 Apr 2018 06:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:in-reply-to :references; bh=uCJ9ht+S8onD19uirMiAtEup3yGm7KUQdji6soaoQLA=; b=WTEO2wdFgIxsb5sEoCtkxbmSXwcrBgcW9sHTDZrqDhsRoIVccf7TnGINwNBaV9XSbb uvmNwLo02RbqwwWkWqUFMbh+9tQVxcDDfof/N8zb7QrBTFd13jGrIy4N1Y786cUo24ry ifqLd2gbh+VEF4+UPC5hbzdFrpECY9F+wBzs0CABaH3gRkfiBEqMsm8Lmtnyt189zojV RkSfJ5CrSiVsqdYd0v7+cjEfeIsDag/EEdhFB/oG6VUj+USf1mu9Dz5+D9eoTPSV5Jeq 7vq68fWJUs6TjlQ9EKGfJa1V6fcLYQtIdDdmD+zrZ/Z7lUrhenAorffFFDVumV/FOSoP tM+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=uCJ9ht+S8onD19uirMiAtEup3yGm7KUQdji6soaoQLA=; b=STljQzfhnGnEh/391kBAEV6COYJSuzTJsSoc/L6iX84abqtgCzoxVMkzZDWbGaexqE wERsGaIMNockXLWH7sq6VqbFrfgswVlpG2IPltLvaG6Fx6pcAxZM4LACM+3RB5yZAAZn r8P/WCZEK4r7DkPnyProXuP1W8XaAtuKH+Ga+LY28va9fhK7N9pKa0HcnzR3fDahfxIz QqjLzUJzGSAxCbTi+Hteah6obVzgvnSp+k/rYTSfutxbSh7h7xj8/ttlT4417gS1qZTI AY9rlZPMcS+cR+cemOtjTKnsw9+8yLGcjMNSWAxC4YCstVw8PFGAEMt2lGrkenzjHDE/ 2SrQ== X-Gm-Message-State: ALQs6tCgO835HZ9ZVJgdom/PBIyojGuuanQ8CJCeBDY1zmV00PgXtR3y 9xDMgrpwsyssVMGx66qVMenbaQ== X-Received: by 10.98.159.129 with SMTP id v1mr9799655pfk.25.1524231200038; Fri, 20 Apr 2018 06:33:20 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id g11sm9621319pgu.56.2018.04.20.06.33.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 06:33:19 -0700 (PDT) From: Greentime Hu X-Google-Original-From: Greentime Hu To: linux-kernel@vger.kernel.org, arnd@arndb.de, greentime@andestech.com, green.hu@gmail.com, private@roeck-us.net, hch@infradead.org, vincentc@andestech.com, nickhu@andestech.com Subject: [PATCH v2 9/9] nds32: Fix the allmodconfig build. To make sure CONFIG_CPU_LITTLE_ENDIAN is default y Date: Fri, 20 Apr 2018 21:31:15 +0800 Message-Id: <186daa632c13751fc68bc31c52d3230846966a6a.1524229040.git.greentime@andestech.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This way we can build kernel with CONFIG_CPU_LITTLE_ENDIAN=y. Build allmodconfig and allnoconfig are available too. It also fix the endian mismatch issue because AFLAGS and LDFLAGS is not passed correctly. Signed-off-by: Vincent Ren-Wei Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig.cpu | 5 +++-- arch/nds32/Makefile | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu index ba44cc539da9..b8c8984d1456 100644 --- a/arch/nds32/Kconfig.cpu +++ b/arch/nds32/Kconfig.cpu @@ -1,10 +1,11 @@ comment "Processor Features" config CPU_BIG_ENDIAN - bool "Big endian" + def_bool !CPU_LITTLE_ENDIAN config CPU_LITTLE_ENDIAN - def_bool !CPU_BIG_ENDIAN + bool "Little endian" + default y config HWZOL bool "hardware zero overhead loop support" diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile index 20edf34e70ce..513bb2e9baf9 100644 --- a/arch/nds32/Makefile +++ b/arch/nds32/Makefile @@ -32,8 +32,12 @@ endif ifdef CONFIG_CPU_LITTLE_ENDIAN KBUILD_CFLAGS += $(call cc-option, -EL) +KBUILD_AFLAGS += $(call cc-option, -EL) +LDFLAGS += $(call cc-option, -EL) else KBUILD_CFLAGS += $(call cc-option, -EB) +KBUILD_AFLAGS += $(call cc-option, -EB) +LDFLAGS += $(call cc-option, -EB) endif boot := arch/nds32/boot -- 1.9.5