mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 05:04:50 +00:00
Delete special handling for 'device-driver' suffix, it's not used in
the kernel source now.
This commit is contained in:
parent
6c205e59db
commit
1b24aa44b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48525
|
@ -56,12 +56,11 @@ struct file_list {
|
||||||
/*
|
/*
|
||||||
* Types.
|
* Types.
|
||||||
*/
|
*/
|
||||||
#define DRIVER 1
|
#define NORMAL 1
|
||||||
#define NORMAL 2
|
#define INVISIBLE 2
|
||||||
#define INVISIBLE 3
|
#define PROFILING 3
|
||||||
#define PROFILING 4
|
#define NODEPEND 4
|
||||||
#define NODEPEND 5
|
#define LOCAL 5
|
||||||
#define LOCAL 6
|
|
||||||
#define DEVDONE 0x80000000
|
#define DEVDONE 0x80000000
|
||||||
#define TYPEMASK 0x7fffffff
|
#define TYPEMASK 0x7fffffff
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: mkmakefile.c,v 1.42 1999/05/09 17:23:37 phk Exp $";
|
"$Id: mkmakefile.c,v 1.43 1999/05/09 18:54:23 peter Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -249,6 +249,7 @@ read_files()
|
||||||
register struct opt *op;
|
register struct opt *op;
|
||||||
char *wd, *this, *needs, *special, *depends, *clean;
|
char *wd, *this, *needs, *special, *depends, *clean;
|
||||||
char fname[80];
|
char fname[80];
|
||||||
|
int ddwarned = 0;
|
||||||
int nreqs, first = 1, configdep, isdup, std, filetype,
|
int nreqs, first = 1, configdep, isdup, std, filetype,
|
||||||
imp_rule, no_obj, before_depend, mandatory;
|
imp_rule, no_obj, before_depend, mandatory;
|
||||||
|
|
||||||
|
@ -266,7 +267,7 @@ read_files()
|
||||||
next:
|
next:
|
||||||
/*
|
/*
|
||||||
* filename [ standard | mandatory | optional ] [ config-dependent ]
|
* filename [ standard | mandatory | optional ] [ config-dependent ]
|
||||||
* [ dev* | profiling-routine ] [ device-driver] [ no-obj ]
|
* [ dev* | profiling-routine ] [ no-obj ]
|
||||||
* [ compile-with "compile rule" [no-implicit-rule] ]
|
* [ compile-with "compile rule" [no-implicit-rule] ]
|
||||||
* [ dependency "dependency-list"] [ before-depend ]
|
* [ dependency "dependency-list"] [ before-depend ]
|
||||||
* [ clean "file-list"]
|
* [ clean "file-list"]
|
||||||
|
@ -404,7 +405,10 @@ read_files()
|
||||||
goto nextparam;
|
goto nextparam;
|
||||||
}
|
}
|
||||||
if (eq(wd, "device-driver")) {
|
if (eq(wd, "device-driver")) {
|
||||||
filetype = DRIVER;
|
if (!ddwarned) {
|
||||||
|
printf("%s: `device-driver' flag ignored.\n", fname);
|
||||||
|
ddwarned++;
|
||||||
|
}
|
||||||
goto nextparam;
|
goto nextparam;
|
||||||
}
|
}
|
||||||
if (eq(wd, "profiling-routine")) {
|
if (eq(wd, "profiling-routine")) {
|
||||||
|
@ -716,10 +720,6 @@ do_rules(f)
|
||||||
ftype = "NORMAL";
|
ftype = "NORMAL";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DRIVER:
|
|
||||||
ftype = "DRIVER";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case PROFILING:
|
case PROFILING:
|
||||||
if (!profiling)
|
if (!profiling)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue