git_cmd = 'git clone ssh://%s:%s/%s -b %s' % ( git_host, git_port, git_prj, git_branch)
print 'git_cmd %s' %(git_cmd)
+ # 64 bit support
+ str_64_cmd = ''
+ if profile.get('support_64') != 'False':
+ str_64_cmd = '$WORKDIR/$SDKIMAGE/make_%s_64.sh -u %s -b %s\n' % \
+ (profile["private_cmd"],
+ os.path.join(profile["base_url"],profile["repo_path"],build_id),
+ os.path.join(profile["base_url"],profile["base_repo_path"],'latest'))
+
buildcmd = '#!/bin/bash \nset -x\n' \
'BUILDDIR="/share/build"\nWORKDIR="/srv/work"\nRS="rbs_out"\nSDKIMAGE="sdk-image"\n' \
'chown -R build:build $BUILDDIR\nchmod 600 $BUILDDIR/.ssh/id_rsa \n' \
'cp -r "$BUILDDIR/.ssh/" /root/\nchmod 600 /root/.ssh/id_rsa\n' \
'mkdir -p "$WORKDIR"\ncd "$WORKDIR"\n%s\n' \
'$WORKDIR/$SDKIMAGE/make_%s.sh -u %s -b %s\n' \
- '$WORKDIR/$SDKIMAGE/make_%s_64.sh -u %s -b %s\n' \
+ '%s\n' \
'cp -r $WORKDIR/$RS/ $BUILDDIR\n' % \
(git_cmd,
profile["private_cmd"],
os.path.join(profile["base_url"],profile["repo_path"],build_id),
os.path.join(profile["base_url"],profile["base_repo_path"],'latest'),
- profile["private_cmd"],
- os.path.join(profile["base_url"],profile["repo_path"],build_id),
- os.path.join(profile["base_url"],profile["base_repo_path"],'latest'))
+ str_64_cmd)
print buildcmd
with open(os.path.join(builddir, 'run'), 'w') as fcmdl:
git_cmd = 'git clone ssh://%s:%s/%s -b %s' % ( git_host, git_port, git_prj, git_branch)
print 'git_cmd %s' %(git_cmd)
+ # 64 bit support
+ str_64_cmd = ''
+ if profile.get('support_64') != 'False':
+ str_64_cmd = '$WORKDIR/$SDKIMAGE/make_%s_64.sh -u %s -b %s\n' % \
+ (profile["public_cmd"],
+ os.path.join(profile["base_url"],profile["repo_path"],build_id),
+ os.path.join(profile["base_url"],profile["base_repo_path"],'latest'))
+
buildcmd = '#!/bin/bash \n' \
'BUILDDIR="/share/build"\nWORKDIR="/srv/work"\nRS="rbs_out"\nSDKIMAGE="sdk-image"\n' \
'chown -R build:build $BUILDDIR\nchmod 600 $BUILDDIR/.ssh/id_rsa \n' \
'cp -r "$BUILDDIR/.ssh/" /root/\nchmod 600 /root/.ssh/id_rsa\n' \
'mkdir -p "$WORKDIR"\ncd "$WORKDIR"\n%s\n' \
'$WORKDIR/$SDKIMAGE/make_%s.sh -u %s -b %s\n' \
- '$WORKDIR/$SDKIMAGE/make_%s_64.sh -u %s -b %s\n' \
+ '%s\n' \
'cp -r $WORKDIR/$RS/ $BUILDDIR\n' % \
(git_cmd,
profile["public_cmd"],
os.path.join(profile["base_url"],profile["repo_path"],build_id),
os.path.join(profile["base_url"],profile["base_repo_path"],'latest'),
- profile["public_cmd"],
- os.path.join(profile["base_url"],profile["repo_path"],build_id),
- os.path.join(profile["base_url"],profile["base_repo_path"],'latest'))
+ str_64_cmd)
print buildcmd
with open(os.path.join(builddir, 'run'), 'w') as fcmdl:
if __name__ == "__main__":
sys.exit(main())
+