diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-18 21:27:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-18 21:27:22 +0000 |
commit | 7129da009cc72575a84a30c4587bd99f745c49d4 (patch) | |
tree | 5c16654726d0b4c230ed957f88fd1b26be805171 /make/sfdisk.mk | |
parent | f7070772fa2fef125169853747ff9aecc4a88962 (diff) |
Merge a bunch of stuff over from the tuxscreen buildroot, with
many updates to make things be more consistant.
-Erik
Diffstat (limited to 'make/sfdisk.mk')
-rw-r--r-- | make/sfdisk.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/make/sfdisk.mk b/make/sfdisk.mk new file mode 100644 index 000000000..cd71dc693 --- /dev/null +++ b/make/sfdisk.mk @@ -0,0 +1,34 @@ +############################################################# +# +# sfdisk support +# +############################################################# +SFDISK_SOURCE=sfdisk.tar.bz2 +SFDISK_SITE:=ftp://busybox.net/ +SFDISK_DIR=$(BUILD_DIR)/sfdisk + + +$(DL_DIR)/$(SFDISK_SOURCE): + $(WGET) -P $(DL_DIR) $(SFDISK_SITE)/$(SFDISK_SOURCE) + +$(SFDISK_DIR): $(DL_DIR)/$(SFDISK_SOURCE) + bzcat $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) -xvf - + +$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR) + $(MAKE) CROSS=$(TARGET_CROSS) DEBUG=false -C $(SFDISK_DIR); + -$(STRIP) $(SFDISK_DIR)/sfdisk; + touch -c $(SFDISK_DIR)/sfdisk + +$(TARGET_DIR)/sbin/sfdisk: $(SFDISK_DIR)/sfdisk + cp $(SFDISK_DIR)/sfdisk $(TARGET_DIR)/sbin/sfdisk; + touch -c $(TARGET_DIR)/sbin/sfdisk + +sfdisk: uclibc $(TARGET_DIR)/sbin/sfdisk + +sfdisk-clean: + rm -f $(TARGET_DIR)/sbin/sfdisk + -$(MAKE) -C $(SFDISK_DIR) clean + +sfdisk-dirclean: + rm -rf $(SFDISK_DIR) + |