Browse Source

- fbshot: rework target

master
vanhofen 6 years ago
parent
commit
df7b63d2ef
  1. 11
      make/system-tools.mk

11
make/system-tools.mk

@ -793,15 +793,18 @@ $(D)/sg3-utils: $(ARCHIVE)/sg3_utils-$(SG3-UTILS_VER).tar.xz | $(TARGET_DIR)
FBSHOT_PATCH = fbshot-32bit_cs_fb.diff FBSHOT_PATCH = fbshot-32bit_cs_fb.diff
FBSHOT_PATCH += fbshot_cs_hd2.diff FBSHOT_PATCH += fbshot_cs_hd2.diff
fbshot: $(TARGET_DIR)/bin/fbshot $(D)/fbshot: $(D)/libpng $(ARCHIVE)/fbshot-$(FBSHOT_VER).tar.gz | $(TARGET_DIR)
$(TARGET_DIR)/bin/fbshot: $(D)/libpng $(ARCHIVE)/fbshot-$(FBSHOT_VER).tar.gz | $(TARGET_DIR)
$(REMOVE)/fbshot-$(FBSHOT_VER) $(REMOVE)/fbshot-$(FBSHOT_VER)
$(UNTAR)/fbshot-$(FBSHOT_VER).tar.gz $(UNTAR)/fbshot-$(FBSHOT_VER).tar.gz
$(CHDIR)/fbshot-$(FBSHOT_VER); \ $(CHDIR)/fbshot-$(FBSHOT_VER); \
$(call apply_patches, $(FBSHOT_PATCH)); \ $(call apply_patches, $(FBSHOT_PATCH)); \
$(TARGET)-gcc $(TARGET_CFLAGS) $(TARGET_LDFLAGS) fbshot.c -lpng -lz -o $@ sed -i 's| gcc | $(TARGET)-gcc $(TARGET_CFLAGS) $(TARGET_LDFLAGS) |' Makefile; \
$(REMOVE)/fbshot-$(FBSHOT_VER) sed -i '/strip fbshot/d' Makefile; \
$(MAKE) all; \
install -D -m 755 fbshot $(TARGET_DIR)/bin/fbshot
ln -sf fbshot $(TARGET_DIR)/bin/dboxshot ln -sf fbshot $(TARGET_DIR)/bin/dboxshot
$(REMOVE)/fbshot-$(FBSHOT_VER)
$(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

Loading…
Cancel
Save