kumquat-buildroot/package/sysvinit/sysvinit.mk

51 lines
1.6 KiB
Makefile
Raw Normal View History

2005-12-13 06:01:49 +01:00
#############################################################
#
# sysvinit
#
#############################################################
SYSVINIT_VERSION:=2.86
SYSVINIT_SOURCE:=sysvinit-$(SYSVINIT_VERSION).tar.gz
2005-12-13 06:01:49 +01:00
SYSVINIT_SITE:=ftp://ftp.cistron.nl/pub/people/miquels/software
SYSVINIT_DIR:=$(BUILD_DIR)/sysvinit-$(SYSVINIT_VERSION)
SYSVINIT_CAT:=$(ZCAT)
2005-12-13 06:01:49 +01:00
SYSVINIT_BINARY:=src/init
2007-07-17 19:07:33 +02:00
SYSVINIT_TARGET_BINARY:=sbin/init
2005-12-13 06:01:49 +01:00
$(DL_DIR)/$(SYSVINIT_SOURCE):
2009-01-16 12:42:52 +01:00
$(call DOWNLOAD,$(SYSVINIT_SITE),$(SYSVINIT_SOURCE))
2005-12-13 06:01:49 +01:00
sysvinit-unpacked: $(SYSVINIT_DIR)/.unpacked
$(SYSVINIT_DIR)/.unpacked: $(DL_DIR)/$(SYSVINIT_SOURCE)
$(SYSVINIT_CAT) $(DL_DIR)/$(SYSVINIT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(SYSVINIT_DIR) package/sysvinit/ sysvinit-\*.patch
touch $@
2005-12-13 06:01:49 +01:00
$(SYSVINIT_DIR)/$(SYSVINIT_BINARY): $(SYSVINIT_DIR)/.unpacked
CFLAGS="$(TARGET_CFLAGS)" $(MAKE) CC=$(TARGET_CC) -C $(SYSVINIT_DIR)/src
$(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY): $(SYSVINIT_DIR)/$(SYSVINIT_BINARY)
2007-08-22 11:56:41 +02:00
for x in halt init shutdown; do \
install -D $(SYSVINIT_DIR)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1; \
2005-12-13 06:01:49 +01:00
done
sysvinit: ncurses $(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY)
2005-12-13 06:01:49 +01:00
2007-07-17 19:07:33 +02:00
sysvinit-source: $(DL_DIR)/$(SYSVINIT_SOURCE)
2005-12-13 06:01:49 +01:00
sysvinit-clean:
2007-08-22 11:56:41 +02:00
for x in halt init shutdown; do \
rm -f $(TARGET_DIR)/sbin/$$x || exit 1; \
2005-12-13 06:01:49 +01:00
done
-$(MAKE) -C $(SYSVINIT_DIR) clean
sysvinit-dirclean:
rm -rf $(SYSVINIT_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_SYSVINIT),y)
2005-12-13 06:01:49 +01:00
TARGETS+=sysvinit
endif