Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 8554a02

Browse files
authored
Build ARM packages in Travis (#84)
* Add QHY arm32v7 SDK * Enable arm32v7 builds in Travis * Remove again arm builds
1 parent d073dfb commit 8554a02

112 files changed

Lines changed: 30556 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/drivers/qhy/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
add_sdk(NAME QHY_Windows MAJOR 5 MINOR 0 PATCH 7 URL "http://www.qhyccd.com/file/repository/latestSoftAndDirver/SDK/V5.0.7/WINDOWS_qhyccd_V20190527_0.zip" HASH_ALGO MD5 HASH 342e063e31f662efe0d16448c7a4a696)
22
add_sdk(NAME QHY_Linux_x86_64 MAJOR 5 MINOR 0 PATCH 7 URL "http://www.qhyccd.com/file/repository/latestSoftAndDirver/SDK/V5.0.7/LINUX_X64_qhyccd_V20190527_0.tgz" HASH_ALGO MD5 HASH b599eae3a4a017321df0a8ccfd19f812)
33
add_sdk(NAME QHY_Mac_x86_64 MAJOR 5 MINOR 0 PATCH 7 URL "http://www.qhyccd.com/file/repository/latestSoftAndDirver/SDK/V5.0.7/MACOS_X64_qhyccd_V20190527_0.tgz" HASH_ALGO MD5 HASH 7bed1c9171c7731ff1ccb8f7cda66c19)
4+
add_sdk(NAME QHY_Linux_armv7 MAJOR 5 MINOR 0 PATCH 7 URL "http://www.qhyccd.com/file/repository/latestSoftAndDirver/SDK/V5.0.8/RPI3_qhyccd_V20190605_0.tgz" HASH_ALGO MD5 HASH 9b93f8fd7a375f153abf2fdbe60ba60a)
45

56
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
67
set(QHY_INCLUDE_DIRECTORY ${QHY_Windows_SDK_DIR}/include)
@@ -17,10 +18,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
1718
set(QHY_LIBRARY ${QHY_LIBS_DIRECTORY}/libqhyccd.a)
1819
set(QHY_EXTRA_LIBRARIES usb-1.0 "-framework CoreFoundation" "-framework IOKit" objc)
1920
elseif(CMAKE_SYSTEM_NAME STREQUAL Linux)
20-
set(QHY_INCLUDE_DIRECTORY ${QHY_Linux_x86_64_SDK_DIR}/usr/local/include)
21-
set(QHY_LIBS_DIRECTORY ${QHY_Linux_x86_64_SDK_DIR}/usr/local/lib)
21+
set(QHY_INCLUDE_DIRECTORY ${QHY_Linux_${PlanetaryImager_ARCH}_SDK_DIR}/usr/local/include)
22+
set(QHY_LIBS_DIRECTORY ${QHY_Linux_${PlanetaryImager_ARCH}_SDK_DIR}/usr/local/lib)
2223
set(QHY_LIBRARY ${QHY_LIBS_DIRECTORY}/libqhyccd.a)
23-
file(READ ${QHY_Linux_x86_64_SDK_DIR}/etc/udev/rules.d/85-qhyccd.rules QHY_UDEV_RULES)
24+
file(READ ${QHY_Linux_${PlanetaryImager_ARCH}_SDK_DIR}/etc/udev/rules.d/85-qhyccd.rules QHY_UDEV_RULES)
2425
string(REPLACE "/sbin/fxload" "${CMAKE_INSTALL_PREFIX}/bin/fxload_planetaryimager" QHY_UDEV_RULES "${QHY_UDEV_RULES}")
2526
string(REPLACE "/lib/firmware/qhy" "/lib/firmware/qhy_planetaryimager" QHY_UDEV_RULES "${QHY_UDEV_RULES}")
2627
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/qhyccd.rules" "${QHY_UDEV_RULES}")
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#!/bin/bash
2+
#####################################################################################################################
3+
# Description : This script uninstalls all the necessary files (libraries, firmwares, udev, include) on RPI3 machine.
4+
# Written by : MiaoYongQiang (davis_miao@126.com)
5+
# Version : V4.0.13
6+
# Date : 2019-02-18
7+
#####################################################################################################################
8+
9+
# uninstall QHYCCD SDK
10+
11+
12+
find /lib -name "libqhyccd*" -exec rm -f {} \;
13+
find /usr/lib -name "libqhyccd*" -exec rm -f {} \;
14+
find /usr/local/lib -name "libqhyccd*" -exec rm -f {} \;
15+
16+
find /lib -name "QHY*.HEX" -exec rm -f {} \;
17+
find /lib -name IC16200A.HEX -exec rm -f {} \;
18+
find /lib -name IC16803.HEX -exec rm -f {} \;
19+
find /lib -name IC8300.HEX -exec rm -f {} \;
20+
find /lib -name IC90A.HEX -exec rm -f {} \;
21+
find /lib -name IMG0H.HEX -exec rm -f {} \;
22+
find /lib -name IMG2P.HEX -exec rm -f {} \;
23+
find /lib -name IMG2S.HEX -exec rm -f {} \;
24+
find /lib -name IMG50.HEX -exec rm -f {} \;
25+
find /lib -name POLEMASTER.HEX -exec rm -f {} \;
26+
find /lib -name miniCam5.HEX -exec rm -f {} \;
27+
find /lib -name "QHY*.img" -exec rm -f {} \;
28+
29+
find /usr/lib -name "QHY*.HEX" -exec rm -f {} \;
30+
find /usr/lib -name IC16200A.HEX -exec rm -f {} \;
31+
find /usr/lib -name IC16803.HEX -exec rm -f {} \;
32+
find /usr/lib -name IC8300.HEX -exec rm -f {} \;
33+
find /usr/lib -name IC90A.HEX -exec rm -f {} \;
34+
find /usr/lib -name IMG0H.HEX -exec rm -f {} \;
35+
find /usr/lib -name IMG2P.HEX -exec rm -f {} \;
36+
find /usr/lib -name IMG2S.HEX -exec rm -f {} \;
37+
find /usr/lib -name IMG50.HEX -exec rm -f {} \;
38+
find /usr/lib -name POLEMASTER.HEX -exec rm -f {} \;
39+
find /usr/lib -name miniCam5.HEX -exec rm -f {} \;
40+
find /usr/lib -name "QHY*.img" -exec rm -f {} \;
41+
42+
find /usr/local -name "QHY*.HEX" -exec rm -f {} \;
43+
find /usr/local -name IC16200A.HEX -exec rm -f {} \;
44+
find /usr/local -name IC16803.HEX -exec rm -f {} \;
45+
find /usr/local -name IC8300.HEX -exec rm -f {} \;
46+
find /usr/local -name IC90A.HEX -exec rm -f {} \;
47+
find /usr/local -name IMG0H.HEX -exec rm -f {} \;
48+
find /usr/local -name IMG2P.HEX -exec rm -f {} \;
49+
find /usr/local -name IMG2S.HEX -exec rm -f {} \;
50+
find /usr/local -name IMG50.HEX -exec rm -f {} \;
51+
find /usr/local -name POLEMASTER.HEX -exec rm -f {} \;
52+
find /usr/local -name miniCam5.HEX -exec rm -f {} \;
53+
find /usr/local -name "QHY*.img" -exec rm -f {} \;
54+
55+
56+
rm -f /lib/udev/rules.d/85-qhy.rules
57+
58+
rm -f /etc/udev/rules.d/85-qhy.rules
59+
60+
rm -f /lib/udev/rules.d/85-qhyccd.rules
61+
62+
rm -f /etc/udev/rules.d/85-qhyccd.rules
63+
64+
rm -f /sbin/fxload
65+
66+
rm -rf /usr/local/cmake_modules
67+
68+
rm -f /usr/local/doc/HowTo_QHYCCD_SDK_CrossPlatform.pdf
69+
70+
rm -rf /usr/local/fx3load
71+
72+
rm -f /usr/local/include/config.h
73+
rm -f /usr/local/include/qhyccd*.h
74+
75+
rm -f /usr/local/lib/libqhyccd*
76+
rm -rf /lib/firmware/qhy/*
77+
78+
rm -rf /usr/local/testapp/*
79+
80+
rm -f /usr/local/udev/85-qhyccd.rules
81+
82+
rm -f /usr/local/udev/85-qhy.rules
83+
84+
rm -f /usr/share/usb/a3load.hex

0 commit comments

Comments
 (0)