blob: 8678e9e600638c111af2b3299acf3919bfdd4e72 [file] [log] [blame]
Bob Badour025eb9d2021-02-12 17:19:06 -08001package {
2 default_applicable_licenses: ["external_ethtool_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18//
19// large-scale-change included anything that looked like it might be a license
20// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
21//
22// Please consider removing redundant or irrelevant files from 'license_text:'.
23// See: http://go/android-license-faq
24license {
25 name: "external_ethtool_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-GPL",
29 "SPDX-license-identifier-GPL-2.0",
30 "SPDX-license-identifier-LGPL",
31 ],
32 license_text: [
33 "COPYING",
34 "LICENSE",
35 ],
36}
37
Lorenzo Colitti660c7dd2019-10-14 09:06:02 +090038cc_binary {
39 name: "ethtool",
40 srcs: [
41 "amd8111e.c",
42 "at76c50x-usb.c",
43 "de2104x.c",
Maciej Żenczykowski3b8db262019-10-14 15:53:23 -070044 "dsa.c",
Lorenzo Colitti660c7dd2019-10-14 09:06:02 +090045 "e100.c",
46 "e1000.c",
47 "et131x.c",
48 "ethtool.c",
Maciej Żenczykowski3b8db262019-10-14 15:53:23 -070049 "fec.c",
Lorenzo Colitti660c7dd2019-10-14 09:06:02 +090050 "fec_8xx.c",
51 "fjes.c",
52 "ibm_emac.c",
53 "igb.c",
54 "ixgb.c",
55 "ixgbe.c",
56 "ixgbevf.c",
57 "lan78xx.c",
58 "marvell.c",
59 "natsemi.c",
60 "pcnet32.c",
61 "qsfp.c",
62 "realtek.c",
63 "rxclass.c",
64 "sfc.c",
65 "sff-common.c",
66 "sfpdiag.c",
67 "sfpid.c",
68 "smsc911x.c",
69 "stmmac.c",
70 "tg3.c",
71 "tse.c",
72 "vioc.c",
73 "vmxnet3.c",
74 ],
75 cflags: [
Lorenzo Colitti660c7dd2019-10-14 09:06:02 +090076 "-Wno-missing-field-initializers",
Lorenzo Colitti660c7dd2019-10-14 09:06:02 +090077 "-DPACKAGE=\"ethtool\"",
Maciej Żenczykowski27cb7cc2019-10-30 18:14:44 -070078 "-DVERSION=\"5.3\"",
Lorenzo Colitti660c7dd2019-10-14 09:06:02 +090079 "-std=gnu11",
80 ]
81}