Message ID | 20220306132635.220607-7-gary.bisson@boundarydevices.com |
---|---|
State | Changes Requested |
Headers | show |
Series | Add Android support | expand |
Hi Gary, On 06.03.22 14:26, Gary Bisson wrote: > - adding libubootenv as vendor dynamic library > - adding fw_printenv and fw_setenv as vendor binaries > - as Android uses clang, a few warning flags are needed: > - Wno-pointer-arith for all the buffer address assignments > - Wno-switch for the flagstype missing default/NONE case > - Wno-date-time to allow __DATE__ usage > > Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> > --- > Android.bp | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > create mode 100644 Android.bp > This is not REUSE compliant because SPDX identifier is missing. Best regards, Stefano Babic > diff --git a/Android.bp b/Android.bp > new file mode 100644 > index 0000000..9e08622 > --- /dev/null > +++ b/Android.bp > @@ -0,0 +1,27 @@ > +cc_library { > + name: "libubootenv", > + vendor: true, > + srcs: [ > + "src/uboot_env.c", > + ], > + shared_libs: ["libz"], > + cflags: ["-std=gnu99", "-Wno-pointer-arith", "-Wno-switch"], > + export_include_dirs: ["src"], > + local_include_dirs: ["src"], > +} > + > +cc_binary { > + name: "fw_printenv", > + vendor: true, > + srcs: ["src/fw_printenv.c"], > + shared_libs: ["libubootenv"], > + cflags: ["-std=gnu99", "-Wno-date-time"], > +} > + > +cc_binary { > + name: "fw_setenv", > + vendor: true, > + srcs: ["src/fw_setenv.c"], > + shared_libs: ["libubootenv"], > + cflags: ["-std=gnu99", "-Wno-date-time"], > +}
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..9e08622 --- /dev/null +++ b/Android.bp @@ -0,0 +1,27 @@ +cc_library { + name: "libubootenv", + vendor: true, + srcs: [ + "src/uboot_env.c", + ], + shared_libs: ["libz"], + cflags: ["-std=gnu99", "-Wno-pointer-arith", "-Wno-switch"], + export_include_dirs: ["src"], + local_include_dirs: ["src"], +} + +cc_binary { + name: "fw_printenv", + vendor: true, + srcs: ["src/fw_printenv.c"], + shared_libs: ["libubootenv"], + cflags: ["-std=gnu99", "-Wno-date-time"], +} + +cc_binary { + name: "fw_setenv", + vendor: true, + srcs: ["src/fw_setenv.c"], + shared_libs: ["libubootenv"], + cflags: ["-std=gnu99", "-Wno-date-time"], +}
- adding libubootenv as vendor dynamic library - adding fw_printenv and fw_setenv as vendor binaries - as Android uses clang, a few warning flags are needed: - Wno-pointer-arith for all the buffer address assignments - Wno-switch for the flagstype missing default/NONE case - Wno-date-time to allow __DATE__ usage Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> --- Android.bp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Android.bp