Snap7.mk 734 B

123456789101112131415161718192021222324
  1. SNAP7_VERSION:= b118aefdc184bda1a62c5527424696dbd28bdf05
  2. SNAP7_SITE:= https://gogs.psg-bgh.de/PSG/snap7-iot-quark-1.4.2.git
  3. SNAP7_SITE_METHOD:= git
  4. SNAP7_INSTALL_TARGET:=YES
  5. SNAP7_INSTALL_STAGING:=YES
  6. define SNAP7_BUILD_CMDS
  7. echo `basedir $(TARGET_CC)`
  8. echo "============================================="
  9. printenv
  10. echo "============================================="
  11. $(MAKE) -f ./i586_linux.mk CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D)/build/unix all
  12. endef
  13. define SNAP7_INSTALL_TARGET_CMDS
  14. $(INSTALL) -D -m 0755 $(@D)/build/bin/i586-linux/libsnap7.so $(TARGET_DIR)/lib
  15. endef
  16. define SNAP7_INSTALL_STAGING_CMDS
  17. $(INSTALL) -D -m 0755 $(@D)/build/bin/i586-linux/libsnap7.so $(STAGING_DIR)/lib
  18. endef
  19. $(eval $(generic-package))