diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-30 00:11:46 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-30 01:00:45 (EDT) |
commit | 99d28cf935d2d15a724f2d750b1732ed58e7aa09 (patch) | |
tree | 4f8327225ce0239043d324c44b273ffcaf2b6b1e | |
parent | 5c7bb5629df9542a140f7f7d8cdb7c90a9237fa0 (diff) |
-rwxr-xr-x | bin/bdf2fbcon | 3 |
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); |