From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Mon, 12 Dec 2016 18:25:01 +0100 Subject: [Buildroot] [PATCH] usbip: add a new package In-Reply-To: <401bd78e-f466-95f7-6cc8-caa5b15af34f@mind.be> References: <1481272671-6491-1-git-send-email-tal.shorer@gmail.com> <20161211135617.GB3599@free.fr> <3fae2ec3-3be6-e839-f854-210b223b65af@mind.be> <20161211220520.GH3599@free.fr> <20161211222056.GI3599@free.fr> <401bd78e-f466-95f7-6cc8-caa5b15af34f@mind.be> Message-ID: <20161212172501.GA3509@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Tal, Arnout, All, On 2016-12-12 10:40 +0100, Arnout Vandecappelle spake thusly: > On 11-12-16 23:30, Tal Shorer wrote: > > Both don't deal with source-check, though. I think we should consider > > linux-tools again at this point, since it doesn't have any of these > > problems (it has its own problems, but I'm beginning to think I'd > > rather deal with those). If nobody objects to this approach I'll > > +1 to that approach. Still, I don't like the custom autotools commands we'll have to have. What about (mock-up, just for the sake of the example): ############### # usbip ############### # No USBIP_SITE, no USB_VERSION, we vampirise the code from the # linux kernel USBIP_PATCH_DEPENDENCIES = linux USBIP_SRC_DIR = $)(wildcard \ $(LINUX_DIR)/tools/usb/usbip \ $(LINUX_DIR)/drivers/staging/blabla) define USBIP_EXTRACT_CMDS if [ -z "$(USB_SRC_DIR)" ]; then \ echo "No usbip source in your kernel tree" 2>&1; \ exit 1; \ fi rsync $(USB_SRC_DIR) $(@D) endef $(eval $(autotools-package)) This way, we still have a proper autotools package, we don;t fail on source-check, and we re-use the kernel sources. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'