summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/bdf2fbcon3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon
index 3d4c3f7..6f0cae6 100755
--- a/bin/bdf2fbcon
+++ b/bin/bdf2fbcon
@@ -209,6 +209,7 @@ sub write_fbcon
}
$output_fh->printf(" * Generated by bdf2fbcon\n */\n\n");
$output_fh->printf("#include <linux/font.h>\n\n");
+ $output_fh->printf("#include <linux/module.h>\n\n");
$output_fh->printf("#define FONTDATAMAX %d\n\n",
$bytes_x * $font->{'height'} * 256);
$output_fh->printf('static const unsigned char' .
@@ -243,7 +244,7 @@ sub write_fbcon
$output_fh->printf("\t.height\t= %d,\n", $font->{'height'});
$output_fh->printf("\t.data\t= fontdata_%s,\n", $font->{'id'});
$output_fh->printf("\t.pref\t= %d,\n", $font->{'pref'});
- $output_fh->printf("};\n");
+ $output_fh->printf("};\nEXPORT_SYMBOL(font_%s);\n", $font->{'id'});
if ($output ne '-') {
close($output_fh);