mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
sysvint: convert to gentargets and bump to 2.88
Also, changed the site to Debian, to get the latest patches [ Thomas: add inittab compatible with sysvinit. Minor fixes. ] Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
dfd068cd27
commit
7e2bf63080
3
CHANGES
3
CHANGES
@ -7,7 +7,8 @@
|
|||||||
direcfb-examples, dmalloc, cloop, cups, ffmpeg, gdk-pixbuf,
|
direcfb-examples, dmalloc, cloop, cups, ffmpeg, gdk-pixbuf,
|
||||||
hostapd, i2c-tools, input-tools, libconfig, ltp-testsuite, m4,
|
hostapd, i2c-tools, input-tools, libconfig, ltp-testsuite, m4,
|
||||||
mii-diag, mrouted, openssh, openssl, openvpn, pango, qt,
|
mii-diag, mrouted, openssh, openssl, openvpn, pango, qt,
|
||||||
rsync, sdl_gfx, sdl_sound, sysklogd, udev, usbutils, xz, zlib
|
rsync, sdl_gfx, sdl_sound, sysklogd, sysvinit, udev, usbutils,
|
||||||
|
xz, zlib
|
||||||
|
|
||||||
New packages: dhrystone, fbgrab, lsuio, rsh-redone, whetstone
|
New packages: dhrystone, fbgrab, lsuio, rsh-redone, whetstone
|
||||||
|
|
||||||
|
31
package/sysvinit/inittab
Normal file
31
package/sysvinit/inittab
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# /etc/inittab
|
||||||
|
#
|
||||||
|
# This inittab is a basic inittab sample for sysvinit, which mimics
|
||||||
|
# Buildroot's default inittab for Busybox.
|
||||||
|
id:1:initdefault:
|
||||||
|
|
||||||
|
proc::sysinit:/bin/mount -t proc proc /proc
|
||||||
|
rwmo::sysinit:/bin/mount -o remount,rw /
|
||||||
|
dpts::sysinit:/bin/mkdir -p /dev/pts
|
||||||
|
moun::sysinit:/bin/mount -a
|
||||||
|
host::sysinit:/bin/hostname -F /etc/hostname
|
||||||
|
init::sysinit:/etc/init.d/rcS
|
||||||
|
|
||||||
|
1:1:respawn:/sbin/getty 38400 tty1
|
||||||
|
2:1:respawn:/sbin/getty 38400 tty2
|
||||||
|
|
||||||
|
# S0:1:respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
|
||||||
|
|
||||||
|
# Logging junk
|
||||||
|
mess::sysinit:/bin/touch /var/log/messages
|
||||||
|
sysl:1:respawn:/sbin/syslogd -n -m 0
|
||||||
|
klog:1:respawn:/sbin/klogd -n
|
||||||
|
|
||||||
|
# Stuff to do for the 3-finger salute
|
||||||
|
rebo::ctrlaltdel:/sbin/reboot
|
||||||
|
|
||||||
|
# Stuff to do before rebooting
|
||||||
|
sklo:6:wait:/usr/bin/killall klogd
|
||||||
|
ssys:6:wait:/usr/bin/killall syslogd
|
||||||
|
umou:6:wait:/bin/umount -a -r
|
||||||
|
swap:6:wait:/sbin/swapoff -a
|
@ -1,9 +0,0 @@
|
|||||||
--- sysvinit/src/Makefile
|
|
||||||
+++ sysvinit/src/Makefile
|
|
||||||
@@ -10,5 +10,3 @@
|
|
||||||
|
|
||||||
-CC = gcc
|
|
||||||
-CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
|
|
||||||
-LDFLAGS = -s
|
|
||||||
+CFLAGS += -Wall -D_GNU_SOURCE
|
|
||||||
STATIC =
|
|
@ -3,50 +3,47 @@
|
|||||||
# sysvinit
|
# sysvinit
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
SYSVINIT_VERSION:=2.86
|
SYSVINIT_VERSION = 2.88
|
||||||
SYSVINIT_SOURCE:=sysvinit-$(SYSVINIT_VERSION).tar.gz
|
SYSVINIT_SOURCE = sysvinit_$(SYSVINIT_VERSION)dsf.orig.tar.gz
|
||||||
SYSVINIT_SITE:=ftp://ftp.cistron.nl/pub/people/miquels/software
|
SYSVINIT_PATCH = sysvinit_$(SYSVINIT_VERSION)dsf-13.diff.gz
|
||||||
SYSVINIT_DIR:=$(BUILD_DIR)/sysvinit-$(SYSVINIT_VERSION)
|
SYSVINIT_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/s/sysvinit
|
||||||
SYSVINIT_CAT:=$(ZCAT)
|
|
||||||
SYSVINIT_BINARY:=src/init
|
|
||||||
SYSVINIT_TARGET_BINARY:=sbin/init
|
|
||||||
|
|
||||||
$(DL_DIR)/$(SYSVINIT_SOURCE):
|
# Override Busybox implementations if Busybox is enabled.
|
||||||
$(call DOWNLOAD,$(SYSVINIT_SITE),$(SYSVINIT_SOURCE))
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||||
|
SYSKLOGD_DEPENDENCIES = busybox
|
||||||
|
endif
|
||||||
|
|
||||||
sysvinit-unpacked: $(SYSVINIT_DIR)/.unpacked
|
define SYSVINIT_DEBIAN_PATCHES
|
||||||
$(SYSVINIT_DIR)/.unpacked: $(DL_DIR)/$(SYSVINIT_SOURCE)
|
if [ -d $(@D)/debian/patches ]; then \
|
||||||
$(SYSVINIT_CAT) $(DL_DIR)/$(SYSVINIT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
|
||||||
toolchain/patch-kernel.sh $(SYSVINIT_DIR) package/sysvinit/ sysvinit-\*.patch
|
fi
|
||||||
touch $@
|
endef
|
||||||
|
|
||||||
$(SYSVINIT_DIR)/$(SYSVINIT_BINARY): $(SYSVINIT_DIR)/.unpacked
|
SYSVINIT_POST_PATCH_HOOKS = SYSVINIT_DEBIAN_PATCHES
|
||||||
|
|
||||||
|
define SYSVINIT_BUILD_CMDS
|
||||||
# Force sysvinit to link against libcrypt as it otherwise
|
# Force sysvinit to link against libcrypt as it otherwise
|
||||||
# use an incorrect test to see if it's available
|
# use an incorrect test to see if it's available
|
||||||
CFLAGS="$(TARGET_CFLAGS)" $(MAKE) CC="$(TARGET_CC)" LCRYPT="-lcrypt" -C $(SYSVINIT_DIR)/src
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) LCRYPT="-lcrypt" -C $(@D)/src
|
||||||
|
endef
|
||||||
|
|
||||||
$(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY): $(SYSVINIT_DIR)/$(SYSVINIT_BINARY)
|
define SYSVINIT_INSTALL_TARGET_CMDS
|
||||||
for x in halt init shutdown; do \
|
for x in halt init shutdown; do \
|
||||||
install -D $(SYSVINIT_DIR)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1; \
|
install -D -m 0755 $(@D)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1; \
|
||||||
done
|
done
|
||||||
|
# Override Busybox's inittab with an inittab compatible with
|
||||||
|
# sysvinit
|
||||||
|
install -D -m 0644 package/sysvinit/inittab $(TARGET_DIR)/etc/inittab
|
||||||
|
endef
|
||||||
|
|
||||||
sysvinit: $(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY)
|
define SYSVINIT_UNINSTALL_TARGET_CMDS
|
||||||
|
|
||||||
sysvinit-source: $(DL_DIR)/$(SYSVINIT_SOURCE)
|
|
||||||
|
|
||||||
sysvinit-clean:
|
|
||||||
for x in halt init shutdown; do \
|
for x in halt init shutdown; do \
|
||||||
rm -f $(TARGET_DIR)/sbin/$$x || exit 1; \
|
rm -f $(TARGET_DIR)/sbin/$$x || exit 1; \
|
||||||
done
|
done
|
||||||
-$(MAKE) -C $(SYSVINIT_DIR) clean
|
endef
|
||||||
|
|
||||||
sysvinit-dirclean:
|
define SYSVINIT_CLEAN_CMDS
|
||||||
rm -rf $(SYSVINIT_DIR)
|
$(MAKE) -C $(@D) clean
|
||||||
#############################################################
|
endef
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
$(eval $(call GENTARGETS,package,sysvinit))
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(BR2_PACKAGE_SYSVINIT),y)
|
|
||||||
TARGETS+=sysvinit
|
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user