summaryrefslogtreecommitdiff
path: root/packages/fis
diff options
context:
space:
mode:
Diffstat (limited to 'packages/fis')
-rw-r--r--packages/fis/fis_1.0.bb29
1 files changed, 25 insertions, 4 deletions
diff --git a/packages/fis/fis_1.0.bb b/packages/fis/fis_1.0.bb
index 404955cb75..5a9bdf7f53 100644
--- a/packages/fis/fis_1.0.bb
+++ b/packages/fis/fis_1.0.bb
@@ -1,13 +1,34 @@
DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
+PR = "r1"
SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
svn://svn.chezphil.org/;module=libpbe;proto=http"
+PACKAGES =+ "fis-static"
+FILES_${PN}-static = "${sbindir}/fis-static"
+FILES_${PN} = "${sbindir}/fis"
+
do_compile() {
${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
+
+ # Work around boost threading issue when compiling static
+ # We're singlethreading anyway
+
+ echo "#define BOOST_SP_DISABLE_THREADS" > ${WORKDIR}/tmpfile
+ cat ${WORKDIR}/tmpfile ${WORKDIR}/fis.cc > ${WORKDIR}/fis.new
+ mv ${WORKDIR}/fis.new ${WORKDIR}/fis.cc
+ rm ${WORKDIR}/tmpfile
+
+ ${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
+ ${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
+}
+
+do_install() {
+ ${STRIP} ${WORKDIR}/fis-${PV}/fis-static
${STRIP} ${WORKDIR}/fis-${PV}/fis
-# ${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
-# ${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
-# ${STRIP} ${WORKDIR}/fis-${PV}/fis-static
-} \ No newline at end of file
+
+ install -d ${D}/${sbindir}
+ install -m 755 ${WORKDIR}/fis-${PV}/fis-static ${D}/${sbindir}
+ install -m 755 ${WORKDIR}/fis-${PV}/fis ${D}/${sbindir}
+}