Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2761402imm; Wed, 3 Oct 2018 08:47:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV60iqPH+qPwWjbVVEi4/KEsA8xPjlPRzw1RRbPCXDv2fv7fiVuNoUAeKLnh1Ht2zKf3Zr71w X-Received: by 2002:a63:ea43:: with SMTP id l3-v6mr1893670pgk.427.1538581657911; Wed, 03 Oct 2018 08:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538581657; cv=none; d=google.com; s=arc-20160816; b=Jycv8gkcIPEyBEUnfxtHBSP3KU1bfvu0ebmKJsnnqM5YsPwDkvG8SjePGGjZZnQoVl flM6WMv6khjuKy/B6pOCu8fwGQCEoOb3v/3AMTp7MZdRddPi3IHgZFohIVUeIXVZTBAS RkbT+FGUQudMFJPK6ksqE9rPWgWDm4dIImIXYa0qh94LVlTkaWLXS/eFVS7bpaczdmrg NMYny60I0kxVhQKIc3lTWM459v8Hh1RG/lYmPIXtRrpMAhyzrQA37k6pNEGnwG6H3zy3 nowg5kY1GSbz+EVrYFZh0lyRiDpjb1i7hsmY5nBr26gA0Ihh0t4ASJ5S+PAcyO2SzkHA 8HaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zsllUS+Kzx1vGutnlLm10odU3msdV1cIiglb6OGdel8=; b=i7HxZhC+yBsmq6aKbqur9F2MLXBvT/tZl2Dqjx9bCabj45CC2q8aKt+it8iZ8kiidP OLgdKMVzAs96GwGaW75hTNZcCzMVSxAyAL4OVovZcOP8gmpUhqL3kf0f+4JPEA0dCUGL H4wD2USHOYct/uZuGSeKhY7dOCDbsl7vS97O3qaX/66Sl6zvvkoXyWrqnu0SJ3ohMkGl mhL85QRwi5JYzPXv857t2peBgLJDrMzrW7ly/9amlhsMXSKkCkGAf0O694I2SLOEDkCH R4RbBztyHuFjzRkUjNARJLW8lljw3fg5+jazGaS5jEUry4/zWw9ObTJ0zALrR0D2Mka7 ggBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBrEghzK; 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 bi5-v6si1982850plb.62.2018.10.03.08.47.21; Wed, 03 Oct 2018 08:47:37 -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=lBrEghzK; 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 S1727120AbeJCWgM (ORCPT + 99 others); Wed, 3 Oct 2018 18:36:12 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:38817 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbeJCWgL (ORCPT ); Wed, 3 Oct 2018 18:36:11 -0400 Received: by mail-ot1-f67.google.com with SMTP id h15-v6so6021703otj.5; Wed, 03 Oct 2018 08:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zsllUS+Kzx1vGutnlLm10odU3msdV1cIiglb6OGdel8=; b=lBrEghzK1aX2yTVfVtQr636mE5MGGJF0lLVJsj9YmeyhWapuy/T4GhuccLELKfKMnH CuUf5CWsKq2bdQq6ZbL7vitXIrxVAvDwBrTfKqC8/75ldUuOyyFESJrbZbRulmIXdmhk OcBXk2UfBdVLgDh/cMZBqzlXJo/SYnI84gVtfWXq5uGqj/KULxznG+qVbA6eHHOHIGGy wFPnvRk3aAHkUmoXgDFO+XjGNfmA6AitoyiRGGEYIsCe7eyWZkR2EESctYle9kgzHXw9 dF+KWdzmDmG0BrymfsK2USQAn5da1YF31YGZZKmOSRpWG/c1HxZ44qdhEd0x3Iygjdp+ UUqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zsllUS+Kzx1vGutnlLm10odU3msdV1cIiglb6OGdel8=; b=CStuw7OE/rNLJeBMXedmqJkLS9Jww4nhuP2Ta2uJdG7manIzmJbp118Ij6EwqJW9Bj Qd64/vn3AepCRioGXP5gsQBeKAD7hXkZqgzi82bRQJNKbT3sLkAKY0cg3T6uIjYyXFGb Jp5FdqIYKKW6o5CDaXDWJtXYOnu7l7SuqXh2VA3v7FUxazv7lzAhz25AaKEk0YkxINIj 8CthK7EycEhuX1phLK/22L4cjPMI1fVaDbQgWkw8JYjiVi/Rf+4OSHKxDPwMJDOTxSRM yYifm372P0jLi7H8G9WvzG6+WB8yghgftQP33gZd5Z31dK2Ak7Cr2iUFe0BUm392Lcb7 DKew== X-Gm-Message-State: ABuFfojvgDlCp86gbAeDAKIEEz2GsnTG8Aa/h6UljfnKlOvVuMPgUmDs ZQ1EHKJfRJz4B1+zCFo0YJqqbIlad6GcjBBMu5M= X-Received: by 2002:a9d:948:: with SMTP id 66mr1198303otp.178.1538581635412; Wed, 03 Oct 2018 08:47:15 -0700 (PDT) MIME-Version: 1.0 References: <20180928020816.11251-1-leobras.c@gmail.com> <20181001075607.GA3776@rric.localdomain> In-Reply-To: <20181001075607.GA3776@rric.localdomain> From: Leonardo Bras Date: Wed, 3 Oct 2018 12:46:15 -0300 Message-ID: Subject: Re: [PATCH v3 0/7] Remove errors building drivers/DRIVERNAME To: Robert Richter Cc: lkcamp@lists.libreplanetbr.org, Alexander Shishkin , Finn Thain , "James E.J. Bottomley" , Helge Deller , Martin Schwidefsky , Heiko Carstens , Geert Uytterhoeven , linux-kernel , linux-m68k@lists.linux-m68k.org, oprofile-list@lists.sf.net, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, James Bottomley Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 1, 2018 at 4:56 AM Robert Richter wrote: > > On 27.09.18 23:08:09, Leonardo Br=C3=A1s wrote: > > This Patchset changes some driver's Makefile to allow them building > > using the command 'make drivers/DRIVERNAME', if compatible. > > > > The changed drivers would return error if the above command was run > > on them, after an x86 allyesconfig. > > I don't see what you are trying to achieve here. Why shouldn't the > command fail if it is not the intended way to call it? There are a > couple of use cases where drivers/ is used to share common code over > different archs and it is not always the intention to build them in > drivers/ directly. Sorry, I was not very clear at my reasons why this change is important, I will try to briefly explain the whole story. Some weeks ago I was trying to solve a task that needed to change some compiling options, build the whole kernel (allyesconfig) and look for error= s. The problem was: It would take a long time to build everything in my comput= er. And many friends with slimmer laptops would take much longer. So, I was looking for a service that could do that for me, in the cloud. I found out Gitlab.com offers free 50k minutes of CI for open source projec= ts, and allows anyone get this CI time by only forking my project, adding their changes and pushing to Gitlab. But Gitlab don't allow 'jobs' to take longer than 3 hours, after that the '= job' is killed. The kernel could not be built in 3h, not with allyesconfig. So, I created a 'job' for each directory in Linux kernel, and tried to build them separatel= y. All went fine, except for drivers/, which took over 3 hours. Most logical thing was to continue the division and create five 'jobs' that could divide the building time of drivers. To do that, each job took care o= f a range of starting letters, as you can see in this link: https://gitlab.com/LeoBras/linux-next/blob/build-ci/.gitlab-ci.yml But then I found out some drivers were failing to build. Even if they were = not enabled in my .config. After some work I found out some drivers selection i= s done in drivers/Makefile, and incompatible drivers would break my build if tried to call them directly on drivers/DRIVERNAME. This patchset intents to let the .config selection happen also in drivers/DRIVERNAME/Makefile, avoiding accidentally building drivers that are not in .config. This would allow the kernel to be build on Gitlab CI, and would benefit man= y people who wants to help in the kernel development, but have not much processing power in their machines. I understand my changes may have mistakes, and I am trying to fix them all. I thank you any suggestion to make the code better. Also, I would be happy to know of any other solution to remote build my cha= nges and look for warnkings / errors. Thank you for reading, Leonardo Bras