From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B466C56202 for ; Wed, 18 Nov 2020 05:18:32 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 073F424654 for ; Wed, 18 Nov 2020 05:18:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=dooray.com header.i=@dooray.com header.b="PBvV34be" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 073F424654 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1kfFr2-0002uY-Rn; Wed, 18 Nov 2020 00:18:04 -0500 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94) (envelope-from ) id 1kfFqu-0002sD-0w for kernelnewbies@kernelnewbies.org; Wed, 18 Nov 2020 00:17:56 -0500 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 18 Nov 2020 14:17:41 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send001-relay.gov-dooray.com with SMTP id 6817e2b95fb4ae7b; Wed, 18 Nov 2020 14:17:47 +0900 DKIM-Signature: a=rsa-sha256; b=PBvV34beBf91lvi0/MWDi1H0YmWdJidbsbLMNkufvUea4X1O4PSVvDO5UMYDSFYnKoytn/BhQr 9L+2HOr9vdSBAWuzZg3RmoxtblARZHOOGfYYCUZ1clWegrzFBD3mfJwRJKORDyxLcWHa+2RHwF5N vfEJNf8Onk9/hrMe0vEpJC6d+rw9iiO1NMowWPD52G7lUeg3Cgxnbh6h6ASnipCr7G02F/RDHwp0 d2BXOseFK3JG3BexArXte0fkNXa/5SLJERWMiTyfSLCK3yKH4k/a1YqgCiWhUKgE+TNq8bgthaNh aD9a2zFemlxefhf/3QFsoUfApOtJW573Ve5DqVOw==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=NeVXc8gb8DL2JabuABGps4GF6vGydt65JkKMPckZ9OY=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id 486dafa65fb4ae7b; Wed, 18 Nov 2020 14:17:47 +0900 From: To: =?windows-1257?Q?'Valdis_Kl=E7tnieks'?= References: <06ca01d6bca3$ac434830$04c9d890$@etri.re.kr> <227797.1605594634@turing-police> In-Reply-To: <227797.1605594634@turing-police> Subject: RE: toolchain name for building linux kernel? Date: Wed, 18 Nov 2020 14:17:46 +0900 Message-ID: <074401d6bd6a$26c44bb0$744ce310$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQK2YANmSoTD+Cb6/9ziAqK0khVdtwJ8OOKbp/ovqAA= Content-Language: ko Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Thanks for replying. Yes, at that time, it was sparc and this time it's aarch64. I'm building the kernel on x86_64 machine. So target is aarch64, host is x86_64. My question is about the end part (elf or linux). To build linux kernel, shouldn't it be elf? (using libraries for baremetal, like newlib) And to build a application that'll run on linux, shouldn't it be linux?(using libraries for linux) Please see that last part of https://wiki.osdev.org/Target_Triplet. I wonder why the toolchain name that I built linux kernel ends with -linux. Chan > -----Original Message----- > From: Valdis Kletnieks On Behalf Of Valdis Kl?tnieks > Sent: Tuesday, November 17, 2020 3:31 PM > To: ckim@etri.re.kr > Cc: kernelnewbies@kernelnewbies.org > Subject: Re: toolchain name for building linux kernel? > > On Tue, 17 Nov 2020 14:37:00 +0900, ckim@etri.re.kr said: > > > Some years ago, I used to use sparc-ab-elf- to build linux kernel. > > That will probably build a kernel for the Sun SPARC architecture... > > > Recently, I found a website that I should use aarch64-linux-gnu tool > > to build the kernel. > > > > I tried following it and it generated vmlinux file. (I can't find the > > web page link, but I'm sure I wrote that procedure down when I built > > vmlinux) > > That vmlinux file will only be useful for a 64-bit ARM architecture. > > What sort of machine are you going to run the newly built kernel on, and > what sort of machine are you using for the build? > > (If you're building on the system you'll be booting it on, the distro's > gcc and make commands should be sufficient) _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies