In the process of making hal-backend, 'postlinker' is used(refer script
rootstrap_gen_1.0.sh), so CMakeLists.txt is added to build postlinker
executable in the ARM environment.
copy_required_files.sh script is added to read .xml and copy required
files. Currently, it is a dummy script.
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
--- /dev/null
+ADD_SUBDIRECTORY(script)
--- /dev/null
+#!/usr/bin/bash
+
+COPY_DEST=$1
+POSTLINKER="./script/postlinker"
+
+touch "${COPY_DEST}/dummy"
%description
Package for rootstrap of hal
+
+%prep
+%setup -q
+%cmake
+
+%build
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir %{buildroot}
+./copy_required_files.sh %{buildroot}
+
+%files
+/dummy
--- /dev/null
+PROJECT(postlinker C)
+ADD_EXECUTABLE(${PROJECT_NAME} postlinker.c)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /)