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
--- /dev/null
+#!/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