From 540a76faf88dcf9b8fae85e4e9c5f3e6e800e0f0 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Wed, 3 Aug 2011 16:44:46 +0200 Subject: [PATCH] Support missing symbols --- firmware/l0dable/mktable.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/l0dable/mktable.pl b/firmware/l0dable/mktable.pl index 25ab08b..cc96e87 100755 --- a/firmware/l0dable/mktable.pl +++ b/firmware/l0dable/mktable.pl @@ -82,7 +82,10 @@ my %defs; for my $idx (0..$#symb){ $_=$symb[$idx]; if(!$types{$_}){ - warn "Couldn't find $symb[$idx]"; + warn "Couldn't find $symb[$idx] - ignoring it."; + print C "NULL,"; + print I "#define $_ (NULL)"; + next; }; if(!$defs{$files{$_}}){ print H qq!#include "$files{$_}"!; @@ -103,3 +106,5 @@ close(I); close(H); close(C); +print "done."; +