Commit 8dda4eb3 authored by Romain Naour's avatar Romain Naour Committed by Peter Korsgaard
Browse files

openpowerlink: use git repository instead of zip archive



Since commit 6c5c08b8,
openpowerlink package is rebuilt at every make call because
.stamp_downloaded is missing in the build directory.[D

The culprit is OPENPOWERLINK_EXTRACT_CMDS that remove and
replace the build directory.

unzip extract a directory "openPOWERLINK-V1.08.4" and
Buildroot expect a directory "openpowerlink-V1.08.4"

It is easier to use git repository instead of zip archive and
avoids rename the directory openPOWERLINK to openpowerlink.

Signed-off-by: default avatarRomain Naour <romain.naour@openwide.fr>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 8e5b15d9
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -5,9 +5,8 @@
################################################################################

OPENPOWERLINK_VERSION = V1.08.4
OPENPOWERLINK_SOURCE = openPOWERLINK-$(OPENPOWERLINK_VERSION).zip
OPENPOWERLINK_SITE = http://downloads.sourceforge.net/project/openpowerlink/openPOWERLINK/V1.8.4

OPENPOWERLINK_SITE = http://git.code.sf.net/p/openpowerlink/code
OPENPOWERLINK_SITE_METHOD = git
OPENPOWERLINK_LICENSE = BSD-2c, GPLv2
OPENPOWERLINK_LICENSE_FILES = license.txt
OPENPOWERLINK_INSTALL_STAGING = YES
@@ -89,11 +88,4 @@ else
OPENPOWERLINK_CONF_OPT += -DCFG_X86_DEMO_LINUX_KERNEL=OFF
endif

define OPENPOWERLINK_EXTRACT_CMDS
	$(RM) -rf $(OPENPOWERLINK_DIR)
	unzip -q -d $(BUILD_DIR)/ $(DL_DIR)/$(OPENPOWERLINK_SOURCE)
	test -d $(OPENPOWERLINK_DIR) || \
		mv $(BUILD_DIR)/$(subst .zip,,$(OPENPOWERLINK_SOURCE)) $(OPENPOWERLINK_DIR)
endef

$(eval $(cmake-package))