Patch for forcing ARDrone SDK 2.0 to build vlib and sdk while not in app mode. This patch is then being used to create a Makefile to build SDK 2.0 which replaces the old build_sdk.sh

Esse commit está contido em:
Mani Monajjemi
2012-06-26 16:29:55 -07:00
commit 7bcaec7f9f
3 arquivos alterados com 29 adições e 4 exclusões
+3
Ver Arquivo
@@ -105,6 +105,9 @@ define ADD_RULE_TEMPLATE
ifeq ($(USE_ANDROID),yes)
build_lib: build_$(1)
endif
ifeq ($(USE_LINUX), yes)
build_lib: build_$(1)
endif
endif
endif
endif
-4
Ver Arquivo
@@ -1,4 +0,0 @@
#!/bin/sh
rm -rf ./lib && mkdir lib && cd ARDroneLib/Soft/Build && make clean && make && cp -f targets_versions/*/*.a ../../../lib/
cd ../../../
+26
Ver Arquivo
@@ -0,0 +1,26 @@
SDK_PATH:=$(shell pwd)/ARDroneLib
PC_TARGET=yes
USE_LINUX=yes
ifdef MYKONOS
include $(ARDRONE_CUSTOM_CONFIG)
include $(ARDRONE_BUILD_CONFIG)
else
include $(SDK_PATH)/Soft/Build/custom.makefile
include $(SDK_PATH)/Soft/Build/config.makefile
endif
$(SDK_TARGET_DIR)
SDK_FLAGS+="USE_APP=no"
SDK_FLAGS+="USE_LIB=yes"
all:
@$(MAKE) -C $(SDK_PATH)/Soft/Build $(TMP_SDK_FLAGS) $(SDK_FLAGS) $(MAKECMDGOALS) USE_LINUX=yes
@$(MAKE) -C $(SDK_PATH)/VP_SDK/Build $(TMP_SDK_FLAGS) $(SDK_FLAGS) $(MAKECMDGOALS) USE_LINUX=yes
find $(SDK_PATH)/Soft/Build -type f -name '*.a' -exec cp '{}' ./lib \;