2008-04-18 15:54:50 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# devmem2
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
DEVMEM2_SOURCE:=devmem2.c
|
|
|
|
DEVMEM2_SITE:=http://free-electrons.com/pub/mirror
|
|
|
|
DEVMEM2_BINARY:=devmem2
|
|
|
|
DEVMEM2_DIR:=$(BUILD_DIR)/devmem2
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DEVMEM2_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(DEVMEM2_SITE),$(DEVMEM2_SOURCE))
|
2008-04-18 15:54:50 +02:00
|
|
|
|
|
|
|
$(DEVMEM2_DIR)/$(DEVMEM2_SOURCE): $(DL_DIR)/$(DEVMEM2_SOURCE)
|
|
|
|
mkdir -p $(@D)
|
|
|
|
cp $^ $@
|
|
|
|
|
|
|
|
$(DEVMEM2_DIR)/$(DEVMEM2_BINARY): $(DEVMEM2_DIR)/$(DEVMEM2_SOURCE)
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
$(TARGET_DIR)/sbin/$(DEVMEM2_BINARY): $(DEVMEM2_DIR)/$(DEVMEM2_BINARY)
|
|
|
|
cp $^ $@
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
devmem2: $(TARGET_DIR)/sbin/$(DEVMEM2_BINARY)
|
2008-04-18 15:54:50 +02:00
|
|
|
|
|
|
|
devmem2-source: $(DL_DIR)/$(DEVMEM2_SOURCE)
|
|
|
|
|
|
|
|
devmem2-clean:
|
|
|
|
rm -f $(TARGET_DIR/sbin/$(DEVMEM2_BINARY)
|
|
|
|
|
|
|
|
devmem2-dirclean:
|
|
|
|
rm -rf $(DEVMEM2_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DEVMEM2),y)
|
2008-04-18 15:54:50 +02:00
|
|
|
TARGETS+=devmem2
|
|
|
|
endif
|