422ce6536b
A C library will have been built by the toolchain makefiles, so there is no need for packages to explicitly depend on uclibc. Signed-off-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#############################################################
|
|
#
|
|
# sfdisk support
|
|
#
|
|
#############################################################
|
|
SFDISK_VERSION:=
|
|
SFDISK_SOURCE=sfdisk$(SFDISK_VERSION).tar.bz2
|
|
SFDISK_CAT:=$(BZCAT)
|
|
SFDISK_SITE:=http://www.uclibc.org/
|
|
SFDISK_DIR=$(BUILD_DIR)/sfdisk$(SFDISK_VERSION)
|
|
|
|
$(DL_DIR)/$(SFDISK_SOURCE):
|
|
$(call DOWNLOAD,$(SFDISK_SITE),$(SFDISK_SOURCE))
|
|
|
|
$(SFDISK_DIR)/.patched: $(DL_DIR)/$(SFDISK_SOURCE)
|
|
$(SFDISK_CAT) $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
toolchain/patch-kernel.sh $(SFDISK_DIR) package/sfdisk/ sfdisk.\*.patch
|
|
touch $@
|
|
|
|
|
|
$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR)/.patched
|
|
$(MAKE) \
|
|
CROSS=$(TARGET_CROSS) DEBUG=false OPTIMIZATION="$(TARGET_CFLAGS)" \
|
|
-C $(SFDISK_DIR)
|
|
-$(STRIPCMD) $(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: $(TARGET_DIR)/sbin/sfdisk
|
|
|
|
sfdisk-source: $(DL_DIR)/$(SFDISK_SOURCE)
|
|
|
|
sfdisk-clean:
|
|
rm -f $(TARGET_DIR)/sbin/sfdisk
|
|
-$(MAKE) -C $(SFDISK_DIR) clean
|
|
|
|
sfdisk-dirclean:
|
|
rm -rf $(SFDISK_DIR)
|
|
#############################################################
|
|
#
|
|
# Toplevel Makefile options
|
|
#
|
|
#############################################################
|
|
ifeq ($(BR2_PACKAGE_SFDISK),y)
|
|
TARGETS+=sfdisk
|
|
endif
|