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:
parent
55feb1e92e
commit
883d094d3e
@ -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
|
||||
|
||||
|
16
utils/petitboot/files/petitboot-wrapper
Normal file
16
utils/petitboot/files/petitboot-wrapper
Normal 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
|
Loading…
x
Reference in New Issue
Block a user