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=-0.7 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham 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 6348AC04EB8 for ; Wed, 12 Dec 2018 09:23:00 +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 248FB20839 for ; Wed, 12 Dec 2018 09:23:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ejYCcCJc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 248FB20839 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1gX0jL-0003EC-4S for kernelnewbies@archiver.kernel.org; Wed, 12 Dec 2018 04:22:59 -0500 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gX0hK-000119-Ty for kernelnewbies@kernelnewbies.org; Wed, 12 Dec 2018 04:20:54 -0500 Received: by mail-lf1-x12a.google.com with SMTP id f23so12932684lfc.13 for ; Wed, 12 Dec 2018 01:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qv3qNvZBwXDLnxga31IkeJMQzmRrYkZgt6RhuCQJKCA=; b=ejYCcCJc0iNygvIiaccDT4lqr7AdHsbQ8fx9TeowcYFPQk6viOgetwq3ES/0QwvwKJ s94iHJU8kspKp3zQgB1u0cqGXx6UcnCGYpPDTSLexi02PZllDP083aYWru0XKhxKsUOV 9BKySX87DLDAXK/3887v7twSkZn+Qp4fzWbDgC3BXRkK/2vVquzwzpNnZta5vr7IFCBW RPAnHBDRomrse/6ncG7P25R737Md73xREpRFXVSZKkqB4CwvzYB5vSrseO0bm3vrVBN+ C9s8yTLC7ZbEydYhmCQuzhSfl6E3D02Yf9yeC8sulx2bZN8D/S96JKeBPFjjWU6hS+HW xiIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qv3qNvZBwXDLnxga31IkeJMQzmRrYkZgt6RhuCQJKCA=; b=XVM8xRCScOtTpm0/TFJFB55Vmxl3VA0v4eiWgP903Yhpb2H/0pLNZ3ym1X1+TJFbZt OnXQTC/NpLr3UbwEmEaD9jO6wyk6LX9cIOQ98Quv8nCKxHSc1q6Dq21BfHN6QZMF/C9J kQmGuKGRAQM6f9raTkNhJAbWOFBfVO/yMigG5MWNE1OK9l9IUt264jdqWkPJbHtDhdA7 ZLCgAWPFck2xDEHohdcDHn3yxaUmRvt3Xs9+6EdVUZnVyGw0gEvQZOikHwKwhAqivXTE QFmGwNiKe6YEKi1tSGUUedrr69euRyDMLNGrQQZZcJq0erumh8o12leHlAwQs/pecUa/ 6bzA== X-Gm-Message-State: AA+aEWa34dSOj0UfFEg0kU3Dy35kiryM/21kBJV72iENJIb/FWvloI+0 GPonen7R0gTJh97JrH3QQU7x6UMbvmtjYhLosLsngg== X-Google-Smtp-Source: AFSGD/UCVDGagnwEkiQDL9XoAM/t4Z7IuwomdDqNEobaXelVQyreRr0yUpe0GcflI1xnPE9pmLiKXB5DlIY/CTQNmPw= X-Received: by 2002:a19:cd50:: with SMTP id d77mr10861253lfg.125.1544606451966; Wed, 12 Dec 2018 01:20:51 -0800 (PST) MIME-Version: 1.0 From: Carter Cheng Date: Wed, 12 Dec 2018 17:20:40 +0800 Message-ID: Subject: which environment variables to use in KBUILD To: 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: multipart/mixed; boundary="===============7975438837587267094==" Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org --===============7975438837587267094== Content-Type: multipart/alternative; boundary="000000000000e32812057ccfb69c" --000000000000e32812057ccfb69c Content-Type: text/plain; charset="UTF-8" Hi, I have been looking through KBUILD and trying to determine some things but my makefile skills are not completely up to par. I am wondering if there is a specific variable for adding cflags to object files that are incorporated into the vmlinux kernel image. I see there are three variables KBUILD_VMLINUX_INIT/MAIN/LIBS that specify which files are linked in and it should be relatively easy to modify the link phase but I don't see how to add or modify the cflags. Thanks, Carter. --000000000000e32812057ccfb69c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I have been looking through KBUILD = and trying to determine some things but my makefile skills are not complete= ly up to=C2=A0par. I am wondering if there is a specific variable for addin= g cflags to object files that are incorporated into the vmlinux kernel imag= e. I see there are three variables KBUILD_VMLINUX_INIT/MAIN/LIBS that speci= fy which files are linked in and it should be relatively easy to modify the= link phase but I don't see how to add or modify the cflags.
=
Thanks,

Carter.
--000000000000e32812057ccfb69c-- --===============7975438837587267094== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7975438837587267094==--