From owner-freebsd-hackers@freebsd.org Tue Mar 27 16:47:16 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFA98F69764 for ; Tue, 27 Mar 2018 16:47:16 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DC2E71186 for ; Tue, 27 Mar 2018 16:47:16 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 7e35c20e-31de-11e8-91c6-33ffc249f3e8 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 7e35c20e-31de-11e8-91c6-33ffc249f3e8; Tue, 27 Mar 2018 16:47:12 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w2RGl5g1061115; Tue, 27 Mar 2018 10:47:05 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1522169225.49673.36.camel@freebsd.org> Subject: Re: how to add local changes to buildworld? From: Ian Lepore To: Daniel Braniss , freebsd-hackers@freebsd.org Date: Tue, 27 Mar 2018 10:47:05 -0600 In-Reply-To: References: Content-Type: text/plain; charset="iso-8859-7" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 16:47:17 -0000 On Tue, 2018-03-27 at 19:20 +0300, Daniel Braniss wrote: > Hi, > I have some local additions which int the past, after making changes > to some Makefiles, etc, I got them compiled > but somehow, things stopped working after 11, so I¢m now trying to do > a fresh set of patches, > and was wondering if there is some docs around on how to to this > cleanly? trying to figure out the *.mk is becoming a bit complicated. > thanks, > danny > If you're asking what I think (you want to add code of your own into the buildworld), just add LOCAL_DIRS="path/to/dir1 path/to/dir2" to the buildworld command line and it will visit your directories and run the same targets there as for standard freebsd dirs (so your makefiles have to have those targets, mostly easily accomplished by including the usual bsd..mk where foo=prog|lib|subdir|whatever. The local dir paths in LOCAL_DIRS must be relative to the top-level freebsd source dir, you can't use absolute paths (but you can use relative paths that take you outside the freebsd path, I think, like ../mysources/project1). -- Ian