1package { 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 38cc_binary { 39 name: "ethtool", 40 srcs: [ 41 "amd8111e.c", 42 "at76c50x-usb.c", 43 "de2104x.c", 44 "dsa.c", 45 "e100.c", 46 "e1000.c", 47 "et131x.c", 48 "ethtool.c", 49 "fec.c", 50 "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: [ 76 "-Wno-missing-field-initializers", 77 "-DPACKAGE=\"ethtool\"", 78 "-DVERSION=\"5.3\"", 79 "-std=gnu11", 80 ] 81} 82