Changeset 896 for lm-sensors/trunk/mkpatch
- Timestamp:
- 10/09/00 21:07:56 (8 years ago)
- Files:
-
- lm-sensors/trunk/mkpatch/mkpatch.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/mkpatch/mkpatch.pl
r867 r896 344 344 my $pr1 = 0; 345 345 my $pr2 = 0; 346 my $new_style = 0; 346 347 347 348 open INPUT,"$kernel_root/$kernel_file" … … 350 351 or die "Can't open $package_root/$package_file"; 351 352 MAIN: while(<INPUT>) { 352 if (m@^ALL_SUB_DIRS\s*:=@) { 353 if (m@^mod-subdirs\s*:=@) { 354 $new_style = 1; 355 } 356 if ((! $new_style and m@^ALL_SUB_DIRS\s*:=@) or m@^nid0subdirs\s*:=@) { 353 357 $pr1 = 1; 354 358 $sensors_present = 0; … … 364 368 redo MAIN; 365 369 } 366 if (m@ CONFIG_SENSORS@) {370 if (m@^ifeq.*CONFIG_SENSORS@) { 367 371 $_ = <INPUT> while not m@^endif@; 368 372 $_ = <INPUT>; … … 370 374 redo MAIN; 371 375 } 376 if (m@^subdir.*CONFIG_I2C@) { 377 $_ = <INPUT>; 378 redo MAIN; 379 } 372 380 if (m@^include \$\(TOPDIR\)/Rules.make$@) { 373 381 $pr2 = 1; 382 if ($new_style) { 383 print OUTPUT <<'EOF'; 384 subdir-$(CONFIG_SENSORS) += sensors 385 EOF 386 } else { 374 387 print OUTPUT <<'EOF'; 375 388 ifeq ($(CONFIG_SENSORS),y) … … 383 396 384 397 EOF 398 } 385 399 } 386 400 print OUTPUT;
