no need for more then one printf, makes dmesg unasble
[openwrt.git] / openwrt / package / linux / kernel-source / drivers / net / hnd / shared_ksyms.sh
1 #!/bin/sh
2 #
3 # Copyright 2004, Broadcom Corporation
4 # All Rights Reserved.
5 #
6 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
7 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
8 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
9 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
10 #
11 # $Id$
12 #
13
14 cat <<EOF
15 #include <linux/config.h>
16 #include <linux/module.h>
17 EOF
18
19 for file in $* ; do
20 ${NM} $file | sed -ne 's/[0-9A-Fa-f]* [DT] \([^ ]*\)/extern void \1; EXPORT_SYMBOL(\1);/p'
21 done
This page took 0.047318 seconds and 5 git commands to generate.