diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..1f7dff0 --- /dev/null +++ b/Android.bp @@ -0,0 +1,49 @@ +package { + default_applicable_licenses: ["external_libudev_zero_license"], +} + +license { + name: "external_libudev_zero_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-ISC", + ], + license_text: [ + "LICENSE", + ], +} + +cc_genrule { + name: "libudev_zero_copy_headers", + srcs: ["udev.h"], + out: ["libudev.h"], + cmd: "cp $(in) $(out)", +} + +cc_library_static { + name: "libudev-zero", + visibility: [ + "//external/igt-gpu-tools", + ], + srcs: [ + "udev.c", + "udev_list.c", + "udev_device.c", + "udev_monitor.c", + "udev_enumerate.c", + ], + generated_headers: [ + "libudev_zero_copy_headers", + ], + export_generated_headers: [ + "libudev_zero_copy_headers", + ], + cflags: [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wmissing-prototypes", + "-Wstrict-prototypes", + "-Wno-unused-parameter", + ], +} diff --git a/METADATA b/METADATA new file mode 100644 index 0000000..626de45 --- /dev/null +++ b/METADATA @@ -0,0 +1,16 @@ +name: "libudev-zero" +description: + "Drop-in replacement for libudev intended to work with any device manager" + +third_party { +homepage: "https://github.com/illiliti/libudev-zero" + identifier { + type: "Git" + value: "https://github.com/illiliti/libudev-zero" + primary_source: true + version: "bbeb7ad51c1edb7ab3cf63f30a21e9bb383b7994" + } + version: "bbeb7ad51c1edb7ab3cf63f30a21e9bb383b7994" + last_upgrade_date { year: 2025 month: 4 day: 28 } + license_type: NOTICE +} \ No newline at end of file diff --git a/MODULE_LICENSE_ISC b/MODULE_LICENSE_ISC new file mode 100644 index 0000000..e69de29 diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..c956c29 --- /dev/null +++ b/OWNERS @@ -0,0 +1 @@ +include platform/system/core:main:/janitors/OWNERS \ No newline at end of file