From 1f7769239cdf7fe41f903c1bc30d3fd32a1d7e26 Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Fri, 4 Jun 2021 21:40:46 +0900 Subject: Initialization for platform/hal/backend/tm1/device-tm1 Change-Id: If094689ec7c82af3529fb20eed8512a5e996a6f3 Signed-off-by: Hyotaek Shim --- CMakeLists.txt | 2 +- packaging/device-manager-plugin-sc7730.manifest | 5 --- packaging/device-manager-plugin-sc7730.spec | 50 ------------------------- packaging/hal-backend-device-tm1.manifest | 5 +++ packaging/hal-backend-device-tm1.spec | 50 +++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 56 deletions(-) delete mode 100644 packaging/device-manager-plugin-sc7730.manifest delete mode 100644 packaging/device-manager-plugin-sc7730.spec create mode 100644 packaging/hal-backend-device-tm1.manifest create mode 100644 packaging/hal-backend-device-tm1.spec diff --git a/CMakeLists.txt b/CMakeLists.txt index bed189e..f1880cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(device-manager-plugin-sc7730 C) +PROJECT(hal-backend-device-tm1 C) SET(CMAKE_VERBOSE_MAKEFILE OFF) diff --git a/packaging/device-manager-plugin-sc7730.manifest b/packaging/device-manager-plugin-sc7730.manifest deleted file mode 100644 index 97e8c31..0000000 --- a/packaging/device-manager-plugin-sc7730.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/device-manager-plugin-sc7730.spec b/packaging/device-manager-plugin-sc7730.spec deleted file mode 100644 index e5bd16b..0000000 --- a/packaging/device-manager-plugin-sc7730.spec +++ /dev/null @@ -1,50 +0,0 @@ -Name: device-manager-plugin-sc7730 -Summary: Device manager plugin sc7730 -Version: 0.0.1 -Release: 0 -Group: System/Hardware Adaptation -License: Apache-2.0 -Source0: %{name}-%{version}.tar.gz -Source1: %{name}.manifest -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig -BuildRequires: cmake -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(hal-api-common) -BuildRequires: pkgconfig(hal-api-device) -BuildRequires: pkgconfig(libsyscommon) -BuildRequires: pkgconfig(hal-backend-device-common) - -%description -Device manager plugin sc7730 - -%prep -%setup -q -cp %{SOURCE1} . - -%build -%cmake \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DHAL_LIB_DIR=%{_hal_libdir} \ - -DHAL_LICENSE_DIR=%{_hal_licensedir} \ - -DENABLE_DLOG=on - -make %{?jobs:-j%jobs} - -%install -rm -rf %{buildroot} - -mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d -install -m 644 rules/61-video.rules %{buildroot}%{_prefix}/lib/udev/rules.d - -%make_install - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%{_hal_libdir}/*.so* -%manifest %{name}.manifest -%{_hal_licensedir}/%{name}/LICENSE.Apache-2.0 -%{_prefix}/lib/udev/rules.d/61-video.rules diff --git a/packaging/hal-backend-device-tm1.manifest b/packaging/hal-backend-device-tm1.manifest new file mode 100644 index 0000000..97e8c31 --- /dev/null +++ b/packaging/hal-backend-device-tm1.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/hal-backend-device-tm1.spec b/packaging/hal-backend-device-tm1.spec new file mode 100644 index 0000000..6077349 --- /dev/null +++ b/packaging/hal-backend-device-tm1.spec @@ -0,0 +1,50 @@ +Name: hal-backend-device-tm1 +Summary: Device HAL backend drivers for TM1 targets +Version: 0.0.1 +Release: 0 +Group: System/Hardware Adaptation +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: cmake +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(hal-api-common) +BuildRequires: pkgconfig(hal-api-device) +BuildRequires: pkgconfig(libsyscommon) +BuildRequires: pkgconfig(hal-backend-device-common) + +%description +Device HAL backend drivers for TM1 targets + +%prep +%setup -q +cp %{SOURCE1} . + +%build +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DHAL_LIB_DIR=%{_hal_libdir} \ + -DHAL_LICENSE_DIR=%{_hal_licensedir} \ + -DENABLE_DLOG=on + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d +install -m 644 rules/61-video.rules %{buildroot}%{_prefix}/lib/udev/rules.d + +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%{_hal_libdir}/*.so* +%manifest %{name}.manifest +%{_hal_licensedir}/%{name}/LICENSE.Apache-2.0 +%{_prefix}/lib/udev/rules.d/61-video.rules -- cgit v1.2.3