petitboot: add missing file and fix cflags issues

git-svn-id: svn://svn.openwrt.org/openwrt/packages@13718 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-12-22 15:14:16 +00:00
parent 55feb1e92e
commit 883d094d3e
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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