From: Felix Fietkau Date: Mon, 22 Dec 2008 15:14:16 +0000 (+0000) Subject: petitboot: add missing file and fix cflags issues X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=d8567656c1cd99cb3e271a1c15f122eea3036ae1 petitboot: add missing file and fix cflags issues SVN-Revision: 13718 --- diff --git a/utils/petitboot/Makefile b/utils/petitboot/Makefile index eb9024a5e9..28d3c0256c 100644 --- a/utils/petitboot/Makefile +++ b/utils/petitboot/Makefile @@ -27,14 +27,18 @@ define Package/petitboot endef define Build/Configure + endef +TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR) + define Build/Compile PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \ $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \ all install endef diff --git a/utils/petitboot/files/petitboot-wrapper b/utils/petitboot/files/petitboot-wrapper new file mode 100644 index 0000000000..607a357709 --- /dev/null +++ b/utils/petitboot/files/petitboot-wrapper @@ -0,0 +1,16 @@ +#!/bin/sh + +# wrapper script for petitboot - re-exec as required. +mkdir -p /var/tmp/mnt + +while : +do + /usr/sbin/petitboot -u >/var/log/petitboot.log 2>&1 + + # cleanup + for dir in /var/tmp/mnt/* + do + umount "$dir" + rmdir "$dir" + done +done