Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
a92b7599
Commit
a92b7599
authored
4 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
Update git module paths to be relative
This allows easier movement to opensrc as needed.
parent
49daa497
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#11185
failed
4 years ago
Stage: clean
Stage: build
Stage: protect_bins
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitmodules
+15
-23
15 additions, 23 deletions
.gitmodules
build-all.sh
+0
-167
0 additions, 167 deletions
build-all.sh
clean-all.sh
+0
-100
0 additions, 100 deletions
clean-all.sh
with
15 additions
and
290 deletions
.gitmodules
+
15
−
23
View file @
a92b7599
[submodule "idaproCur"]
shallow = true
path = idaproCur
url = git@git.zephyr-software.com:allzp/idapro71
[submodule "idaproCur_sdk"]
shallow = true
path = idaproCur_sdk
url = git@git.zephyr-software.com:allzp/idapro71_sdk
[submodule "SMPStaticAnalyzer"]
path = SMPStaticAnalyzer
url =
git@git.zephyr-software.com:allnp
/SMPStaticAnalyzer.git
url =
..
/SMPStaticAnalyzer.git
[submodule "zipr"]
path = zipr
url =
git@git.zephyr-software.com:allzp
/zipr.git
url =
..
/zipr.git
[submodule "zipr-sdk"]
path = zipr-sdk
url =
git@git.zephyr-software.com:opensrc
/zipr-sdk.git
url =
..
/zipr-sdk.git
[submodule "pedi"]
path = pedi
url =
git@git.zephyr-software.com:allnp
/pedi.git
url =
..
/pedi.git
[submodule "IdaProServer"]
path = IdaProServer
url =
git@git.zephyr-software.com:allnp
/IdaProServer.git
url =
..
/IdaProServer.git
[submodule "zipr_callbacks"]
path = zipr_callbacks
url =
git@git.zephyr-software.com:allnp
/zipr_callbacks.git
url =
..
/zipr_callbacks.git
[submodule "zipr_unpin_plugin"]
path = zipr_unpin_plugin
url =
git@git.zephyr-software.com:allnp
/zipr_unpin_plugin.git
url =
..
/zipr_unpin_plugin.git
[submodule "zipr_push64_reloc_plugin"]
path = zipr_push64_reloc_plugin
url =
git@git.zephyr-software.com:allnp
/zipr_push64_reloc_plugin.git
url =
..
/zipr_push64_reloc_plugin.git
[submodule "zipr_install"]
path = zipr_install
url =
git@git.zephyr-software.com:allnp
/zipr_install.git
url =
..
/zipr_install.git
[submodule "irdb-sdk"]
path = irdb-sdk
url =
git@git.zephyr-software.com:
opensrc/irdb-sdk.git
url =
../../
opensrc/irdb-sdk.git
[submodule "irdb-libs/libehp"]
path = irdb-libs/libehp
url =
git@git.zephyr-software.com:
opensrc/libehp.git
url =
../../
opensrc/libehp.git
[submodule "irdb-libs/third_party/elfio-code"]
path = irdb-libs/third_party/elfio-code
url =
git@git.zephyr-software.com:
third-party-mirrors/ELFIO.git
url =
../../
third-party-mirrors/ELFIO.git
[submodule "irdb-libs/third_party/pebliss"]
path = irdb-libs/third_party/pebliss
url =
git@git.zephyr-software.com:
third-party-mirrors/pebliss.git
url =
../../
third-party-mirrors/pebliss.git
[submodule "irdb-libs/third_party/capstone"]
path = irdb-libs/third_party/capstone
url =
git@git.zephyr-software.com:
third-party-mirrors/capstone.git
url =
../../
third-party-mirrors/capstone.git
[submodule "irdb-libs/third_party/keystone"]
path = irdb-libs/third_party/keystone
url =
https://github.com/keystone-engine/keystone/
url =
../../third-party-mirrors/keystone.git
This diff is collapsed.
Click to expand it.
build-all.sh
+
0
−
167
View file @
a92b7599
...
...
@@ -14,170 +14,3 @@ else
fi
exit
# check if DIR is the directory containing the build script.
BUILD_LOC
=
`
dirname
$0
`
FULL_BUILD_LOC
=
`
cd
$BUILD_LOC
;
pwd
`
echo
$PEASOUP_UMBRELLA_DIR
if
[
"
$PEASOUP_UMBRELLA_DIR
"
!=
"
$FULL_BUILD_LOC
"
]
;
then
echo
"PEASOUP_UMBRELLA_DIR differs from build-all.sh location (
$FULL_BUILD_LOC
)."
;
echo
"Did you source set_env_vars from the root of the umbrella working copy?"
;
exit
1
;
fi
echo
echo
"Building Zipr toolchain."
echo
SCONSDEBUG
=
""
if
[[
"
$*
"
=
~
"--debug"
]]
;
then
SCONSDEBUG
=
" debug=1 "
fi
if
[
`
basename
$FULL_BUILD_LOC
`
==
"cfar_umbrella"
]
;
then
cfar_mode
=
"--enable-cfar"
fi
mkdir
-p
$ZEST_RUNTIME
/lib32
mkdir
-p
$ZEST_RUNTIME
/lib64
mkdir
-p
$ZEST_RUNTIME
/bin
mkdir
-p
$ZEST_RUNTIME
/sbin
if
[
"
$(
ls
-A
"
$PEDI_HOME
"
2> /dev/null
)
"
==
""
]
;
then
echo
"pedi submodule is empty. Did you clone using --recursive?"
;
exit
1
;
fi
if
[
!
-f
manifest.txt.config
-o
!
-d
"
$PS_INSTALL
"
]
;
then
mkdir
-p
"
$PS_INSTALL
"
$PEDI_HOME
/pedi
--setup
-m
manifest.txt
-l
ida
-l
ida_key
-l
ps
-l
zipr
-l
stars
-i
$PS_INSTALL
fi
use_strata
=
0
if
[[
$use_strata
=
1
]]
;
then
# stratafier
cd
$PEASOUP_UMBRELLA_DIR
/stratafier
make
||
exit
1
# strata
if
[
!
"
$STRATA_HOME
"
]
;
then
echo
"STRATA_HOME not set."
;
exit
1
;
fi
if
[
`
uname
-m
`
=
'x86_64'
]
;
then
# build 32-bit strata
if
[
!
-d
$STRATA_HOME32
]
;
then
cd
$STRATA
if
[
-f
Makefile
]
;
then
make clean distclean
fi
cd
$PEASOUP_UMBRELLA_DIR
echo
Creating strata 32-bit build directory
cp
-R
$STRATA
$STRATA32
fi
cd
$STRATA_HOME32
STRATA_HOME
=
$STRATA_HOME32
STRATA
=
$STRATA_HOME32
./build
-host
=
i386-linux
||
exit
1
# build x86-64 strata
cd
$STRATA_HOME
if
[
-f
Makefile
-a
Makefile
-nt
configure
-a
Makefile
-nt
Makefile.in
]
;
then
echo
Skipping Strata reconfigure step
else
./configure
$cfar_mode
||
exit
1
fi
make
||
exit
1
else
cd
$STRATA_HOME
./build
$cfar_mode
||
exit
1
fi
fi
# smp-static-analyzer
if
[
!
"
$SMPSA_HOME
"
]
;
then
echo
"SMPSA_HOME not set."
;
exit
1
;
fi
# security-transforms
if
[
!
"
$SECURITY_TRANSFORMS_HOME
"
]
;
then
echo
"SECURITY_TRANSFORMS_HOME not set."
;
exit
1
;
fi
cd
$SECURITY_TRANSFORMS_HOME
scons
$SCONSDEBUG
-j
3
||
exit
1
cd
$SMPSA_HOME
scons
$SCONSDEBUG
-j
3
||
exit
1
cd
$SECURITY_TRANSFORMS_HOME
scons
build_deep
=
1
$SCONSDEBUG
-j
3
||
exit
1
cd
$PEASOUP_HOME
make
||
exit
1
if
[
-d
$ZIPR_CALLBACKS
]
;
then
cd
$ZIPR_CALLBACKS
./configure
--enable-p1
--prefix
=
$ZIPR_INSTALL
make
||
exit
1
make
install
||
exit
1
fi
if
[
-d
$ZIPR_HOME
]
;
then
cd
$ZIPR_HOME
scons
$SCONSDEBUG
-j
3||
exit
1
fi
if
[
-d
$ZIPR_SCFI_PLUGIN
]
;
then
cd
$ZIPR_SCFI_PLUGIN
scons
$SCONSDEBUG
||
exit
1
fi
if
[
-d
$ZIPR_XEON_PLUGIN
]
;
then
cd
$ZIPR_XEON_PLUGIN
scons
$SCONSDEBUG
||
exit
fi
cd
$PEASOUP_UMBRELLA_DIR
/zipr_large_only_plugin/
scons
$SCONSDEBUG
||
exit
1
if
[[
-e
$PEASOUP_UMBRELLA_DIR
/zipr
]]
&&
[[
-e
$PEASOUP_UMBRELLA_DIR
/zipr_relax_plugin
]]
;
then
cd
$PEASOUP_UMBRELLA_DIR
/zipr_relax_plugin/
scons
$SCONSDEBUG
||
exit
1
fi
if
[[
-e
$PEASOUP_UMBRELLA_DIR
/zipr
]]
&&
[[
-e
$PEASOUP_UMBRELLA_DIR
/zipr_trace_plugin
]]
;
then
cd
$PEASOUP_UMBRELLA_DIR
/zipr_trace_plugin/
scons
$SCONSDEBUG
||
exit
1
fi
cd
$PEASOUP_UMBRELLA_DIR
/zipr_push64_reloc_plugin
scons
$SCONSDEBUG
||
exit
1
cd
$PEASOUP_UMBRELLA_DIR
/zipr_unpin_plugin
scons
$SCONSDEBUG
||
exit
1
cd
$IRDB_TRANSFORMS
scons
$SCONSDEBUG
-j
3
||
exit
1
if
[[
-d
"
$DAFFY_HOME
"
]]
&&
[[
$(
uname
-p
)
==
'x86_64'
]]
;
then
cd
$DAFFY_HOME
./setup_cfar.sh
||
exit
1
fi
cd
$PEASOUP_UMBRELLA_DIR
$PEDI_HOME
/pedi
-m
manifest.txt
echo
echo
echo
"Zipr toolchain build complete."
echo
echo
This diff is collapsed.
Click to expand it.
clean-all.sh
+
0
−
100
View file @
a92b7599
...
...
@@ -3,103 +3,3 @@
scons
-c
exit
# check if DIR is the directory containing the build script.
BUILD_LOC
=
`
dirname
$0
`
FULL_BUILD_LOC
=
`
cd
$BUILD_LOC
;
pwd
`
echo
$PEASOUP_UMBRELLA_DIR
if
[
"
$PEASOUP_UMBRELLA_DIR
"
!=
"
$FULL_BUILD_LOC
"
]
;
then
echo
"PEASOUP_UMBRELLA_DIR differs from build-all.sh location (
$FULL_BUILD_LOC
)."
;
echo
"Did you source set_env_vars from the root of the umbrella working copy?"
;
exit
1
;
fi
if
[
"
$(
ls
-A
"
$PEDI_HOME
"
2> /dev/null
)
"
==
""
]
;
then
echo
"pedi submodule is empty. Did you clone using --recursive?"
;
exit
1
;
fi
use_strata
=
0
if
[[
$use_strata
=
1
]]
;
then
# stratafier
cd
$PEASOUP_UMBRELLA_DIR
/stratafier
make clean
# clean main strata
cd
$STRATA_HOME
./configure
make clean
rm
Makefile
# clean strata32 if exists.
cd
$PEASOUP_UMBRELLA_DIR
/
rm
-Rf
strata32
fi
cd
$SMPSA_HOME
scons
-c
||
exit
cd
$SECURITY_TRANSFORMS_HOME
scons
-c
||
exit
cd
$IRDB_TRANSFORMS
scons
-c
||
exit
if
[
-d
$ZIPR_SCFI_PLUGIN
]
;
then
cd
$ZIPR_SCFI_PLUGIN
scons
-c
||
exit
fi
if
[[
-d
$ZIPR_CALLBACKS
]]
&&
[[
-e
$ZIPR_CALLBACKS
/Makefile
]]
;
then
cd
$ZIPR_CALLBACKS
make clean
fi
if
[[
-d
"
$PEASOUP_UMBRELLA_DIR
/zipr_large_only_plugin/"
]]
;
then
cd
$PEASOUP_UMBRELLA_DIR
/zipr_large_only_plugin/
scons
-c
||
exit
fi
if
[[
-e
$PEASOUP_UMBRELLA_DIR
/zipr_relax_plugin
]]
;
then
cd
$PEASOUP_UMBRELLA_DIR
/zipr_relax_plugin/
scons
-c
||
exit
fi
if
[[
-e
$PEASOUP_UMBRELLA_DIR
/zipr_trace_plugin
]]
;
then
cd
$PEASOUP_UMBRELLA_DIR
/zipr_trace_plugin/
scons
-c
||
exit
fi
cd
$PEASOUP_UMBRELLA_DIR
/zipr_push64_reloc_plugin
scons
-c
||
exit
cd
$PEASOUP_UMBRELLA_DIR
/zipr_unpin_plugin
scons
-c
||
exit
if
[
-d
"
$ZIPR_HOME
"
]
;
then
cd
$ZIPR_HOME
scons
-c
||
exit
fi
if
[
-d
"
$DAFFY_HOME
"
]
;
then
cd
$DAFFY_HOME
./clean_cfar.sh
fi
cd
$PEASOUP_UMBRELLA_DIR
# clean up installation if this module is the root of the install.
# skip pedi cleanup if we are part of a larger project, as future builds
# won't know how to install properly.
if
[[
$(
head
-1
manifest.txt.config
)
==
$(
pwd
)
]]
;
then
$PEDI_HOME
/pedi
-c
-m
manifest.txt
if
[
-d
"
$PS_INSTALL
"
]
;
then
echo
"removing
$PS_INSTALL
"
rm
-fr
"
$PS_INSTALL
"
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment