1223486Shselasky# $FreeBSD$ 2223486Shselasky# 3223486Shselasky# Copyright (c) 2011 Hans Petter Selasky. All rights reserved. 4223486Shselasky# 5223486Shselasky# Redistribution and use in source and binary forms, with or without 6223486Shselasky# modification, are permitted provided that the following conditions 7223486Shselasky# are met: 8223486Shselasky# 1. Redistributions of source code must retain the above copyright 9223486Shselasky# notice, this list of conditions and the following disclaimer. 10223486Shselasky# 2. Redistributions in binary form must reproduce the above copyright 11223486Shselasky# notice, this list of conditions and the following disclaimer in the 12223486Shselasky# documentation and/or other materials provided with the distribution. 13223486Shselasky# 14223486Shselasky# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15223486Shselasky# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16223486Shselasky# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17223486Shselasky# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18223486Shselasky# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19223486Shselasky# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20223486Shselasky# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21223486Shselasky# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22223486Shselasky# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23223486Shselasky# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24223486Shselasky# SUCH DAMAGE. 25223486Shselasky# 26223486Shselasky 27223486Shselasky# 28223486Shselasky# Example on how to use: 29223486Shselasky# 30223486Shselasky# make clean all install 31223486Shselasky# 32223486Shselasky# ./bus_autoconf.sh /boot/kernel/*.ko | less 33223486Shselasky# 34223486Shselasky 35223486ShselaskyPROG= bus_autoconf 36223486ShselaskyMAN= 37223486ShselaskyBINDIR?= /usr/local/bin 38223486Shselasky 39223534ShselaskySRCS+= bus_autoconf.c 40223534ShselaskySRCS+= bus_load_file.c 41223534ShselaskySRCS+= bus_sections.c 42223534ShselaskySRCS+= bus_usb.c 43223486Shselasky 44223486ShselaskyWARNS= 6 45223486Shselasky 46223486Shselasky.include <bsd.prog.mk> 47