blob: 0a544949c4fe6c3211afe9020e3365c3492190df [file] [log] [blame]
#!/usr/bin/env perl
#
# This is a simple script that generates Makefile "TOOLS" flags.
#
# This is not used at all during part of any build or CI. It's a convenience
# tool for open_pdks contributors.
#
open(FH, '<', "./tools.txt") or die $!;
while (<FH>) {
chomp $_;
my $capitalized = uc $_;
my $disable_macro = "$capitalized\_DISABLED";
print <<"HD"
# $disable_macro = 0 | 1
$disable_macro = \@$disable_macro\@
ifneq (\${$disable_macro}, 1)
TOOLS += $_
endif
HD
}