diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-07-28 15:30:20 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-07-28 15:30:20 +0000 |
commit | 87e9deb12909a1a0d9d192d264d690cbcbe03878 (patch) | |
tree | df5e977b327c623375ebb344d36fa3a0d8230a3a /package/gadgetfs-test/gadgetfs-test.mk | |
parent | 5159757290248bf89af14b20b83c1da3824a28b5 (diff) | |
download | buildroot-novena-87e9deb12909a1a0d9d192d264d690cbcbe03878.tar.gz buildroot-novena-87e9deb12909a1a0d9d192d264d690cbcbe03878.zip |
Add gadgetfs package
Diffstat (limited to 'package/gadgetfs-test/gadgetfs-test.mk')
-rw-r--r-- | package/gadgetfs-test/gadgetfs-test.mk | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/package/gadgetfs-test/gadgetfs-test.mk b/package/gadgetfs-test/gadgetfs-test.mk new file mode 100644 index 000000000..ac84fc085 --- /dev/null +++ b/package/gadgetfs-test/gadgetfs-test.mk @@ -0,0 +1,51 @@ +############################################################# +# +# gadgetfs-test +# +############################################################# +GADGETFS_TEST_SOURCE=gadgetfs-test.tar.bz2 +GADGETFS_TEST_SITE=http://avr32linux.org/twiki/pub/Main/GadgetFsTest/ +GADGETFS_TEST_DIR=$(BUILD_DIR)/gadgetfs-test + +GADGETFS_TEST_MAKEOPTS:=CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" + +ifeq ($(BR2_PACKAGE_GADGETFS_TEST_USE_AIO),y) +GADGETFS_TEST_MAKEOPTS+=USE_AIO=y +endif + +$(DL_DIR)/$(GADGETFS_TEST_SOURCE): + $(WGET) -P $(DL_DIR) $(GADGETFS_TEST_SITE)/$(GADGETFS_TEST_SOURCE) + +$(GADGETFS_TEST_DIR)/.unpacked: $(DL_DIR)/$(GADGETFS_TEST_SOURCE) + $(BZCAT) $(DL_DIR)/$(GADGETFS_TEST_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(GADGETFS_TEST_DIR) package/gadgetfs-test gadgetfs-test\*.patch + touch $@ + +$(GADGETFS_TEST_DIR)/gadgetfs-test: $(GADGETFS_TEST_DIR)/.unpacked + $(MAKE) -C $(GADGETFS_TEST_DIR) $(GADGETFS_TEST_MAKEOPTS) + +$(TARGET_DIR)/usr/bin/gadgetfs-test: $(GADGETFS_TEST_DIR)/gadgetfs-test + $(MAKE) -C $(GADGETFS_TEST_DIR) DESTDIR=$(TARGET_DIR) prefix=/usr install + +ifeq ($(BR2_PACKAGE_GADGETFS_TEST_USE_AIO),y) +gadgetfs-test: uclibc libaio $(TARGET_DIR)/usr/bin/gadgetfs-test +else +gadgetfs-test: uclibc $(TARGET_DIR)/usr/bin/gadgetfs-test +endif + +gadgetfs-test-source: $(DL_DIR)/$(GADGETFS_TEST_SOURCE) + +gadgetfs-test-clean: + -$(MAKE) -C $(GADGETFS_TEST_DIR) $(GADGETFS_TEST_MAKEOPTS) clean + +gadgetfs-test-dirclean: + rm -rf $(GADGETFS_TEST_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_GADGETFS_TEST)),y) +TARGETS+=gadgetfs-test +endif |