summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pcmcia-resource/update-pcmcia-ids.pl
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-05-17 22:44:00 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-05-17 22:54:51 +0200
commit155b75bebc7e70501782e55160d144df212c6f4e (patch)
treec410aa483dbe0aa00d68145f236dff552b112715 /mdk-stage1/pcmcia-resource/update-pcmcia-ids.pl
parent0acaf5127ede7fc0eac16c950e4a450e76962ff9 (diff)
downloaddrakx-155b75bebc7e70501782e55160d144df212c6f4e.tar
drakx-155b75bebc7e70501782e55160d144df212c6f4e.tar.gz
drakx-155b75bebc7e70501782e55160d144df212c6f4e.tar.bz2
drakx-155b75bebc7e70501782e55160d144df212c6f4e.tar.xz
drakx-155b75bebc7e70501782e55160d144df212c6f4e.zip
fix "make -j"
inspirated by pok's changes @mdv
Diffstat (limited to 'mdk-stage1/pcmcia-resource/update-pcmcia-ids.pl')
-rwxr-xr-xmdk-stage1/pcmcia-resource/update-pcmcia-ids.pl42
1 files changed, 0 insertions, 42 deletions
diff --git a/mdk-stage1/pcmcia-resource/update-pcmcia-ids.pl b/mdk-stage1/pcmcia-resource/update-pcmcia-ids.pl
deleted file mode 100755
index 67e0ca9a7..000000000
--- a/mdk-stage1/pcmcia-resource/update-pcmcia-ids.pl
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/perl
-
-use lib '../kernel';
-use strict;
-use MDK::Common;
-
-my @aliases;
-my ($main) = `ls -t /lib/modules/*/modules.alias`;
-foreach (cat_(chomp_($main))) {
- push @aliases, [ $1, $2 ] if /^alias\s+(pcmcia:\S+)\s+(\S+)$/; #- modalias, module
-}
-@aliases or die "unable to get PCMCIA aliases";
-
-print '
-struct pcmcia_alias {
- const char *modalias;
- const char *module;
-};
-
-';
-
-my %t = (
- network => 'network/pcmcia',
- medias => 'disk/pcmcia',
-);
-
-foreach my $type (keys %t) {
- my @modules = chomp_(`perl ../../kernel/modules.pl pci_modules4stage1 "$t{$type}"`)
- or die "unable to get PCMCIA modules";
-
- print "#ifndef DISABLE_".uc($type)."
-struct pcmcia_alias ${type}_pcmcia_ids[] = {
-";
- print qq|\t{ "$_->[0]", "$_->[1]" },\n| foreach grep { member($_->[1], @modules) } @aliases;
- print "};
-unsigned int ${type}_pcmcia_num_ids = sizeof(${type}_pcmcia_ids) / sizeof(struct pcmcia_alias);
-
-#endif
-
-";
-
-}