From owner-freebsd-arch@FreeBSD.ORG Sun Jan 8 23:42:21 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B6DC1065672 for ; Sun, 8 Jan 2012 23:42:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 075198FC08 for ; Sun, 8 Jan 2012 23:42:20 +0000 (UTC) Received: by iadj38 with SMTP id j38so8165658iad.13 for ; Sun, 08 Jan 2012 15:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=FRP+9/OhCZNHrngHlQKxRMap5tyl2hngaNb8FiJ08I4=; b=BZZnOR8iSxyAwpYX6Rx2O5RdmewPM7lJi2hlLn7ak8Q8DJqhCv+BcHJ8JMZvX7SZSZ hAcNJwmFpYdcRziAns4fB4Z4Ut4kTuu5aRYqWJCS/5GUHMm5nm/CSn4osOszvD69Kvr5 m6WLybXbXVqTHbJ1hYhFox6Pgx7Q4gtmh8/tQ= MIME-Version: 1.0 Received: by 10.42.142.129 with SMTP id s1mr9170482icu.42.1326066140454; Sun, 08 Jan 2012 15:42:20 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.42.243.65 with HTTP; Sun, 8 Jan 2012 15:42:20 -0800 (PST) Date: Sun, 8 Jan 2012 15:42:20 -0800 X-Google-Sender-Auth: dtCKXUEoUcy4s_d1FO_6mtUaMbc Message-ID: From: Adrian Chadd To: freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Where should I put ar71xx_* modules? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2012 23:42:21 -0000 Hi, In order to fit an lzma'd kernel in 892 kilobytes of flash (that's 892 * 1024 bytes), I've needed to break out a few things into modules. I'd like to commit a couple of modules - for example, ar71xx_ehci/ar71xx_ohci for USB stuff - but I don't want them built for anything other than ar71xx builds. Thus I don't see the reason for putting them in sys/modules/Makefile. They build fine if they're included in MODULES_OVERRIDE in the relevant kernel config file. So is it ok to just commit some modules in sys/modules/ which aren't in the Makefile, and instead include them in the relevant SoC kernel configs so they're built? Or is there some other tradition for doing this? Thanks, Adrian