From 645140bd78344f179da3c47512ffba1eceee6d3f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 22 Dec 2008 15:14:16 +0000 Subject: [PATCH] petitboot: add missing file and fix cflags issues SVN-Revision: 13718 --- utils/petitboot/Makefile | 4 ++++ utils/petitboot/files/petitboot-wrapper | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 utils/petitboot/files/petitboot-wrapper diff --git a/utils/petitboot/Makefile b/utils/petitboot/Makefile index eb9024a5e..28d3c0256 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 000000000..607a35770 --- /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 -- 2.30.2