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.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FSL_HELO_FAKE,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 934A1C32792 for ; Sat, 5 Oct 2019 03:53:37 +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 524062133F for ; Sat, 5 Oct 2019 03:53:37 +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="rPrKgJom" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 524062133F 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.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iGb8F-0006Sk-Li; Fri, 04 Oct 2019 23:53:23 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1iGb8C-0006Se-SF for kernelnewbies@kernelnewbies.org; Fri, 04 Oct 2019 23:53:20 -0400 Received: by mail-pg1-x542.google.com with SMTP id 23so4863871pgk.3 for ; Fri, 04 Oct 2019 20:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0YKk7QQAlQmrl2S+Cl3UoDIbyWB2BejEgrwzdZHjhhQ=; b=rPrKgJomqYNkaBNyThx7emjdc0J+UKu/w31yFL5pQym51cECvMcrllhamkh5IUPIx1 FaYEEdTjzAHeKrIEgx7DCgkh4HoYHtDJDrTFSBzMe3GmGRnM4FgGiIpBY0juTkkfyppZ O2o0qCTofDPMzrlDpcs8RtPGhxGsO0a9dHr8CzGOShLxV4I8S2OGrtiZ8WjzKYQcXUF5 pDMtIazELY2mSYpGpGQfSQHQiaUyxsEpWrBRLMiGkgu0EQhauo4cc7ZFNk/r+scR34jW 2lxc5T3mCYFhUWDpVHUhvqbTlPUjGxE8Eg06Z38w9yQMKMOo63EO+gf8WSa1/NDedfkb Grgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0YKk7QQAlQmrl2S+Cl3UoDIbyWB2BejEgrwzdZHjhhQ=; b=ASQlTXO7CSl8ut9ySsf63u/TnpMNRz/gQDNKJA7eChPF//u0rU/JACyXsPKczEhKXV PJSbXpAXFR3SseRNIzceqLyp6BUizBl7TsHulwAc1n2Rxv2zYTdo+mdFfcVh+ADx1cO2 GhEMS0/3kk3ub8n55qkDkkiH2raC9P7hqHeWaY2WMsrHD04CREZ8RqzKf047CmP002w9 D+y7L8n1fQetqzuV4l3HPO+ms6hiCiMI4sUhckFV3XkhC+rlSDz7lFAR5es44irYnvcl hewy3FeLszM8rqjMKQOeuPNE4whSWSBbnveswZo5j1WUG4OngYM1PwE2A0nxDQbNy8m+ kRVA== X-Gm-Message-State: APjAAAWHUM0rl2HQvP8zKuGASY7ELEra8sF40JASJ8R/NIO8z4BAr2OH iCtAU3ECgJXNYW7QjjroRlA= X-Google-Smtp-Source: APXvYqzDlHmyW50SmSLPxDyhNv8RXQ4EXznDASvKNDe/XagjuRrcUqpthheZE4GClvQ6fMbE6HY2IA== X-Received: by 2002:a63:ab05:: with SMTP id p5mr18938370pgf.414.1570247538812; Fri, 04 Oct 2019 20:52:18 -0700 (PDT) Received: from gmail.com (ip-103-85-37-165.syd.xi.com.au. [103.85.37.165]) by smtp.gmail.com with ESMTPSA id v4sm7274293pff.181.2019.10.04.20.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 20:52:18 -0700 (PDT) Date: Sat, 5 Oct 2019 13:52:12 +1000 From: Adam Zerella To: CRISTIAN ANDRES VARGAS GONZALEZ Subject: Re: Test the kernel code Message-ID: <20191005035212.GA4397@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) 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 On Fri, Oct 04, 2019 at 10:07:21PM -0500, CRISTIAN ANDRES VARGAS GONZALEZ wrote: > Hello > > I am starting to develop the kernel and I have been compiling the kernel, > now it has been compiling for some time now. When a patch is added, should > everything be compiled again? Or is there a different way to test the code > that has been written? >From what I understand you'll only have to build the _entire_ kernel once and subsequent builds should be faster. The build process should rebuild modules that have a detected change in them. You may be able to build the kernel a bit faster by running the process in parallel. make has an argument of `-j` where you can specify the number of CPU cores to utilise, for example `make -j4` would build with 4 CPUs in parallel. To build an individual kernel module you can specify something like `make M=drivers/staging/android/`. Checkout (no pun intended) https://kernelnewbies.org/KernelBuild for more info. > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies