From c759b25154e213babcf06f42270e5211a3f209b6 Mon Sep 17 00:00:00 2001 From: Maurice Bizzarri Date: Thu, 31 Mar 2016 21:25:44 -0700 Subject: [PATCH 1/2] arm cross compile --- CMakeLists.txt | 4 ++- aws-cpp-sdk-core/CMakeLists.txt | 3 +- aws-cpp-sdk-core/include/aws/core/Region.h | 9 +++-- .../include/aws/core/VersionConfig.h | 2 +- aws-cpp-sdk-core/source/Region.cpp | 6 ++++ .../aws/s3/model/BucketLocationConstraint.h | 12 ++++--- .../source/model/BucketLocationConstraint.cpp | 36 ++++++++++++++----- 7 files changed, 54 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 502710a3849..7c15b4be5af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -998,7 +998,9 @@ if(PLATFORM_WINDOWS) endif() elseif(PLATFORM_LINUX OR PLATFORM_ANDROID OR PLATFORM_APPLE) # max warning level, warnings are errors, turn off unused private field. We have one for an empty class. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -pedantic -Wextra") + # remove -Werror for StringUtils + # + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra") if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field") diff --git a/aws-cpp-sdk-core/CMakeLists.txt b/aws-cpp-sdk-core/CMakeLists.txt index d5539ea3400..c32cfec9410 100644 --- a/aws-cpp-sdk-core/CMakeLists.txt +++ b/aws-cpp-sdk-core/CMakeLists.txt @@ -316,7 +316,8 @@ if(NOT PLATFORM_WINDOWS) if(PLATFORM_LINUX OR PLATFORM_ANDROID OR PLATFORM_APPLE) # max warning level, warnings are errors, turn off unused private field. We have one for an empty class. # We also have some nested comments in the auto-generated member comments so turn that off as well - target_compile_options(aws-cpp-sdk-core PRIVATE -Wall -Werror -Wno-comment) + #remove -Werror due to StringUtilies problem + target_compile_options(aws-cpp-sdk-core PRIVATE -Wall -Wno-comment) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") target_compile_options(aws-cpp-sdk-core PRIVATE -Wno-unused-private-field) diff --git a/aws-cpp-sdk-core/include/aws/core/Region.h b/aws-cpp-sdk-core/include/aws/core/Region.h index aa916e26c33..4b9a609f259 100644 --- a/aws-cpp-sdk-core/include/aws/core/Region.h +++ b/aws-cpp-sdk-core/include/aws/core/Region.h @@ -18,6 +18,10 @@ #include #include +/* + * changed Region to add CN and EU_Central + * Maurice Bizzarri + */ namespace Aws { @@ -30,12 +34,13 @@ namespace Aws US_WEST_1, US_WEST_2, EU_WEST_1, - EU_CENTRAL_1, AP_SOUTHEAST_1, AP_SOUTHEAST_2, AP_NORTHEAST_1, AP_NORTHEAST_2, - SA_EAST_1 + SA_EAST_1, + CN_NORTH_1, + EU_CENTRAL_1 }; namespace RegionMapper diff --git a/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 62d26caff1d..6e0eeaf78e9 100644 --- a/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -13,4 +13,4 @@ * permissions and limitations under the License. */ -#define AWS_SDK_VERSION_STRING "0.9.6-89-gd53c4a3" +#define AWS_SDK_VERSION_STRING "0.9.6-90-g8581d6e" diff --git a/aws-cpp-sdk-core/source/Region.cpp b/aws-cpp-sdk-core/source/Region.cpp index 53f4f8ca441..979b4d4f112 100644 --- a/aws-cpp-sdk-core/source/Region.cpp +++ b/aws-cpp-sdk-core/source/Region.cpp @@ -14,6 +14,10 @@ */ #include +/* + * added CN_NORTH_1 + * Maurice Bizzarri + */ using namespace Aws; @@ -46,6 +50,8 @@ const char* GetRegionName(Region region) return "ap-northeast-2"; case Region::SA_EAST_1: return "sa-east-1"; + case Region::CN_NORTH_1: + return "cn-north-1"; default: return "us-east-1"; } diff --git a/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h b/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h index 32e21565302..6b6869c6211 100644 --- a/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h +++ b/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h @@ -15,7 +15,11 @@ #pragma once #include #include - +/* + * changed BucketLocationConstraint to match + * Region.h in core + * Maurice Bizzarri + */ namespace Aws { namespace S3 @@ -24,14 +28,14 @@ namespace Model { enum class BucketLocationConstraint { - NOT_SET, - EU, - eu_west_1, + us_east_1, us_west_1, us_west_2, + eu_west_1, ap_southeast_1, ap_southeast_2, ap_northeast_1, + ap_northeast_2, sa_east_1, cn_north_1, eu_central_1 diff --git a/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp b/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp index d2e0c44da38..c06ff1b82c3 100644 --- a/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp +++ b/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp @@ -19,16 +19,21 @@ using namespace Aws::Utils; -static const int EU_HASH = HashingUtils::HashString("EU"); +static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); +static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); +/* + * changes to conform to BucketLocationConstraint.h and Region.h + * Maurice Bizzarri + */ namespace Aws { @@ -43,11 +48,11 @@ namespace Aws BucketLocationConstraint GetBucketLocationConstraintForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == EU_HASH) - { - return BucketLocationConstraint::EU; - } - else if (hashCode == eu_west_1_HASH) + if (hashCode == us_east_1_HASH) + { + return BucketLocationConstraint::us_east_1; + } + else if (hashCode == eu_west_1_HASH) { return BucketLocationConstraint::eu_west_1; } @@ -71,6 +76,10 @@ namespace Aws { return BucketLocationConstraint::ap_northeast_1; } + else if (hashCode == ap_northeast_2_HASH) + { + return BucketLocationConstraint::ap_northeast_2; + } else if (hashCode == sa_east_1_HASH) { return BucketLocationConstraint::sa_east_1; @@ -90,15 +99,22 @@ namespace Aws return static_cast(hashCode); } - return BucketLocationConstraint::NOT_SET; + return BucketLocationConstraint::us_east_1; } + /* + * changed to match Region.h in core + * and BucketLocationConstraint.h + * Maurice Bizzarri + */ Aws::String GetNameForBucketLocationConstraint(BucketLocationConstraint enumValue) { switch(enumValue) { - case BucketLocationConstraint::EU: - return "EU"; + // case BucketLocationConstraint::EU: + // return "EU"; + case BucketLocationConstraint::us_east_1: + return "us-east-1"; case BucketLocationConstraint::eu_west_1: return "eu-west-1"; case BucketLocationConstraint::us_west_1: @@ -111,6 +127,8 @@ namespace Aws return "ap-southeast-2"; case BucketLocationConstraint::ap_northeast_1: return "ap-northeast-1"; + case BucketLocationConstraint::ap_northeast_2: + return "ap-northeast-2"; case BucketLocationConstraint::sa_east_1: return "sa-east-1"; case BucketLocationConstraint::cn_north_1: From 2a3a75b3995d9e781d3c06177ddfe504f8f75c33 Mon Sep 17 00:00:00 2001 From: Maurice Bizzarri Date: Thu, 31 Mar 2016 21:25:44 -0700 Subject: [PATCH 2/2] arm cross compile added shell script files and CROSS_README.md --- CMakeLists.txt | 4 ++- CROSS_README.md | 22 ++++++++++++ aws-cpp-sdk-core/CMakeLists.txt | 3 +- aws-cpp-sdk-core/include/aws/core/Region.h | 9 +++-- .../include/aws/core/VersionConfig.h | 2 +- aws-cpp-sdk-core/source/Region.cpp | 6 ++++ .../aws/s3/model/BucketLocationConstraint.h | 12 ++++--- .../source/model/BucketLocationConstraint.cpp | 36 ++++++++++++++----- client.sh | 13 +++++++ cross-cmake.sh | 9 +++++ make-cross.sh | 9 +++++ move-lib.sh | 1 + xmake.sh | 13 +++++++ 13 files changed, 121 insertions(+), 18 deletions(-) create mode 100644 CROSS_README.md create mode 100755 client.sh create mode 100755 cross-cmake.sh create mode 100755 make-cross.sh create mode 100755 move-lib.sh create mode 100755 xmake.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 502710a3849..7c15b4be5af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -998,7 +998,9 @@ if(PLATFORM_WINDOWS) endif() elseif(PLATFORM_LINUX OR PLATFORM_ANDROID OR PLATFORM_APPLE) # max warning level, warnings are errors, turn off unused private field. We have one for an empty class. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -pedantic -Wextra") + # remove -Werror for StringUtils + # + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra") if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field") diff --git a/CROSS_README.md b/CROSS_README.md new file mode 100644 index 00000000000..c4814694779 --- /dev/null +++ b/CROSS_README.md @@ -0,0 +1,22 @@ +************************************************ +Two sets of changes in this pull request: + +1) Fixes to BucketLocationConstraint - + Region.h and .cpp in core + BucketLocationConstraint.h and .cpp in S3 + I made the two lists equivalent, got rid of extraneous and old regions. I made the default us-east-1. I'm not sure that's exactly right but the old code wasn't working very well for me. + +2) Changes to cross compile under Ubuntu 15.10 for ARM Linux. Three shell scripts to help along - cross-cmake.sh to cross compile the entire SDK, client.sh to compile client code, and move-libs.sh to move the libraries to a target ARM board. + +To compile for ARM LINUX: + +1) Edit cross-cmake.sh to point CROSS_COMPILER to your ARM compiler +2) run cross-cmake.sh. If you blow up in StringUtilities with a warning you will have to edit CMakeLists.txt and get rid of -Werror. You may need to do this in two places - the top level and the core (aws-cpp-sdk-core). Once the CMAKE script gets to the integration tests (at 100%) it will blow up. This is normal and mean you are done with this phase. This may take a while. +3) Move libraries (.so) to the target ARM board. I have an example shell script if your target is connected via network. You don't have to move all of them - just the ones you need. Step 5 will tell you what's missing if you don't have a lot of extra space on your target. +4) Compile your target code. Client.sh is set up for S3 and DynamoDb - you will have to add or subtract include paths and libraries for other client needs. +5) Move your code to the target board and try running it. You will probably be missing libraries from the LIB path - hunt them down and either move them to the LIB path or expand the LIB path. You will also have to set two environmental variables for AWS with the correct keys with the priviledges needed for your client. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. + +Once it's set up it works very well. Good luck. + +Maurice Bizzarri + diff --git a/aws-cpp-sdk-core/CMakeLists.txt b/aws-cpp-sdk-core/CMakeLists.txt index d5539ea3400..c32cfec9410 100644 --- a/aws-cpp-sdk-core/CMakeLists.txt +++ b/aws-cpp-sdk-core/CMakeLists.txt @@ -316,7 +316,8 @@ if(NOT PLATFORM_WINDOWS) if(PLATFORM_LINUX OR PLATFORM_ANDROID OR PLATFORM_APPLE) # max warning level, warnings are errors, turn off unused private field. We have one for an empty class. # We also have some nested comments in the auto-generated member comments so turn that off as well - target_compile_options(aws-cpp-sdk-core PRIVATE -Wall -Werror -Wno-comment) + #remove -Werror due to StringUtilies problem + target_compile_options(aws-cpp-sdk-core PRIVATE -Wall -Wno-comment) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") target_compile_options(aws-cpp-sdk-core PRIVATE -Wno-unused-private-field) diff --git a/aws-cpp-sdk-core/include/aws/core/Region.h b/aws-cpp-sdk-core/include/aws/core/Region.h index aa916e26c33..4b9a609f259 100644 --- a/aws-cpp-sdk-core/include/aws/core/Region.h +++ b/aws-cpp-sdk-core/include/aws/core/Region.h @@ -18,6 +18,10 @@ #include #include +/* + * changed Region to add CN and EU_Central + * Maurice Bizzarri + */ namespace Aws { @@ -30,12 +34,13 @@ namespace Aws US_WEST_1, US_WEST_2, EU_WEST_1, - EU_CENTRAL_1, AP_SOUTHEAST_1, AP_SOUTHEAST_2, AP_NORTHEAST_1, AP_NORTHEAST_2, - SA_EAST_1 + SA_EAST_1, + CN_NORTH_1, + EU_CENTRAL_1 }; namespace RegionMapper diff --git a/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 62d26caff1d..6e0eeaf78e9 100644 --- a/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -13,4 +13,4 @@ * permissions and limitations under the License. */ -#define AWS_SDK_VERSION_STRING "0.9.6-89-gd53c4a3" +#define AWS_SDK_VERSION_STRING "0.9.6-90-g8581d6e" diff --git a/aws-cpp-sdk-core/source/Region.cpp b/aws-cpp-sdk-core/source/Region.cpp index 53f4f8ca441..979b4d4f112 100644 --- a/aws-cpp-sdk-core/source/Region.cpp +++ b/aws-cpp-sdk-core/source/Region.cpp @@ -14,6 +14,10 @@ */ #include +/* + * added CN_NORTH_1 + * Maurice Bizzarri + */ using namespace Aws; @@ -46,6 +50,8 @@ const char* GetRegionName(Region region) return "ap-northeast-2"; case Region::SA_EAST_1: return "sa-east-1"; + case Region::CN_NORTH_1: + return "cn-north-1"; default: return "us-east-1"; } diff --git a/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h b/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h index 32e21565302..6b6869c6211 100644 --- a/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h +++ b/aws-cpp-sdk-s3/include/aws/s3/model/BucketLocationConstraint.h @@ -15,7 +15,11 @@ #pragma once #include #include - +/* + * changed BucketLocationConstraint to match + * Region.h in core + * Maurice Bizzarri + */ namespace Aws { namespace S3 @@ -24,14 +28,14 @@ namespace Model { enum class BucketLocationConstraint { - NOT_SET, - EU, - eu_west_1, + us_east_1, us_west_1, us_west_2, + eu_west_1, ap_southeast_1, ap_southeast_2, ap_northeast_1, + ap_northeast_2, sa_east_1, cn_north_1, eu_central_1 diff --git a/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp b/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp index d2e0c44da38..c06ff1b82c3 100644 --- a/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp +++ b/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp @@ -19,16 +19,21 @@ using namespace Aws::Utils; -static const int EU_HASH = HashingUtils::HashString("EU"); +static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); +static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); +/* + * changes to conform to BucketLocationConstraint.h and Region.h + * Maurice Bizzarri + */ namespace Aws { @@ -43,11 +48,11 @@ namespace Aws BucketLocationConstraint GetBucketLocationConstraintForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == EU_HASH) - { - return BucketLocationConstraint::EU; - } - else if (hashCode == eu_west_1_HASH) + if (hashCode == us_east_1_HASH) + { + return BucketLocationConstraint::us_east_1; + } + else if (hashCode == eu_west_1_HASH) { return BucketLocationConstraint::eu_west_1; } @@ -71,6 +76,10 @@ namespace Aws { return BucketLocationConstraint::ap_northeast_1; } + else if (hashCode == ap_northeast_2_HASH) + { + return BucketLocationConstraint::ap_northeast_2; + } else if (hashCode == sa_east_1_HASH) { return BucketLocationConstraint::sa_east_1; @@ -90,15 +99,22 @@ namespace Aws return static_cast(hashCode); } - return BucketLocationConstraint::NOT_SET; + return BucketLocationConstraint::us_east_1; } + /* + * changed to match Region.h in core + * and BucketLocationConstraint.h + * Maurice Bizzarri + */ Aws::String GetNameForBucketLocationConstraint(BucketLocationConstraint enumValue) { switch(enumValue) { - case BucketLocationConstraint::EU: - return "EU"; + // case BucketLocationConstraint::EU: + // return "EU"; + case BucketLocationConstraint::us_east_1: + return "us-east-1"; case BucketLocationConstraint::eu_west_1: return "eu-west-1"; case BucketLocationConstraint::us_west_1: @@ -111,6 +127,8 @@ namespace Aws return "ap-southeast-2"; case BucketLocationConstraint::ap_northeast_1: return "ap-northeast-1"; + case BucketLocationConstraint::ap_northeast_2: + return "ap-northeast-2"; case BucketLocationConstraint::sa_east_1: return "sa-east-1"; case BucketLocationConstraint::cn_north_1: diff --git a/client.sh b/client.sh new file mode 100755 index 00000000000..39b36b64110 --- /dev/null +++ b/client.sh @@ -0,0 +1,13 @@ +./make-cross.sh $1.cpp $1 aws-cpp-sdk-core aws-cpp-sdk-dynamodb aws-cpp-sdk-s3 aws-cpp-sdk-transfer +if [ "$?" = "0" ]; then + +readelf -h $1 +scp -oCiphers=aes128-ctr $1 root@192.168.1.125:/home/root/ +else + echo "nothing copied or checked!" + exit 1 +fi + + + + diff --git a/cross-cmake.sh b/cross-cmake.sh new file mode 100755 index 00000000000..17d3cf7c0c0 --- /dev/null +++ b/cross-cmake.sh @@ -0,0 +1,9 @@ +export ARCH=arm +export CROSS_COMPILER='/home/maurice/core/build/out-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi' +cmake -DCMAKE_BUILD_TYPE=Release -DTARGET_ARCH=LINUX -DCMAKE_C_FLAGS='-mfloat-abi=hard -L/home/maurice/aws-sdk-cpp/testing-resources ' -DCMAKE_C_COMPILER=${CROSS_COMPILER}-gcc -DCMAKE_CXX_COMPILER=${CROSS_COMPILER}-g++ -DCMAKE_CXX_FLAGS='-mfloat-abi=hard -L/home/maurice/aws-sdk-cpp/testing-resources ' . +export CPATH=/home/maurice/aws-sdk-cpp/testing-resources/include +export C_LIBRARY_PATH=/home/maurice/aws-sdk-cpp/testing-resources +export CXX_LIBRARY_PATH=/home/maurice/aws-sdk-cpp/testing-resources +make + + diff --git a/make-cross.sh b/make-cross.sh new file mode 100755 index 00000000000..28691c9e9dc --- /dev/null +++ b/make-cross.sh @@ -0,0 +1,9 @@ +export ARCH=arm +export CROSS_COMPILE=~/core/build/out-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi- +export CPLUS_INCLUDE_PATH=/home/maurice/aws-sdk-cpp/testing-resources/include:/home/maurice/aws-sdk-cpp/aws-cpp-sdk-core/include:/home/maurice/aws-sdk-cpp/aws-cpp-sdk-dynamodb/include:~/aws-sdk-cpp/aws-cpp-sdk-s3/include:~/aws-sdk-cpp/aws-cpp-sdk-transfer/include +export C_INCLUDE_PATH=/home/maurice/aws-sdk-cpp/testing-resources/include:/home/maurice/aws-sdk-cpp/aws-cpp-sdk-core/include:/home/maurice/aws-sdk-cpp/aws-cpp-sdk-dynamodb/include:~/aws-sdk-cpp/aws-cpp-sdk-transfer/include +export LIBRARY_PATH=/home/maurice/aws-sdk-cpp/aws-cpp-sdk-core:/home/maurice/aws-sdk-cpp/aws-cpp-sdk-dynamodb:~/aws-sdk-cpp/aws-cpp-sdk-s3:~/aws-sdk-cpp/aws-cpp-sdk-transfer +${CROSS_COMPILE}g++ -DAWS_CUSTOM_MEMORY_MANAGEMENT -std=c++11 -mfloat-abi=hard -L/home/maurice/aws-sdk-cpp/aws-cpp-sdk-core -L/home/maurice/aws-sdk-cpp/aws-cpp-sdk-dynamodb -L/home/maurice/aws-sdk-cpp/aws-cpp-sdk-s3 -L/home/maurice/aws-sdk-cpp/aws-cpp-sdk-transfer -o $2 $1 -l$3 -l$4 -l$5 -l$6 + + + diff --git a/move-lib.sh b/move-lib.sh new file mode 100755 index 00000000000..9a4fc71d068 --- /dev/null +++ b/move-lib.sh @@ -0,0 +1 @@ +find -name *.so -execdir scp -oCiphers=aes128-ctr '{}' root@192.168.1.125:/usr/lib \; diff --git a/xmake.sh b/xmake.sh new file mode 100755 index 00000000000..39b36b64110 --- /dev/null +++ b/xmake.sh @@ -0,0 +1,13 @@ +./make-cross.sh $1.cpp $1 aws-cpp-sdk-core aws-cpp-sdk-dynamodb aws-cpp-sdk-s3 aws-cpp-sdk-transfer +if [ "$?" = "0" ]; then + +readelf -h $1 +scp -oCiphers=aes128-ctr $1 root@192.168.1.125:/home/root/ +else + echo "nothing copied or checked!" + exit 1 +fi + + + +