Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
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
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
redox-os
cookbook
Commits
f666977d
Unverified
Commit
f666977d
authored
7 years ago
by
Ian Douglas Scott
Browse files
Options
Downloads
Patches
Plain Diff
Use curl in git
parent
4955caca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!40
[WIP] Git recipe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
recipes/curl/recipe.sh
+3
-2
3 additions, 2 deletions
recipes/curl/recipe.sh
recipes/expat/recipe.sh
+37
-0
37 additions, 0 deletions
recipes/expat/recipe.sh
recipes/git/recipe.sh
+6
-3
6 additions, 3 deletions
recipes/git/recipe.sh
with
46 additions
and
5 deletions
recipes/curl/recipe.sh
+
3
−
2
View file @
f666977d
...
...
@@ -31,7 +31,8 @@ function recipe_clean {
}
function
recipe_stage
{
mkdir
"
$1
/bin"
cp
src/curl
"
$1
/bin"
dest
=
"
$(
realpath
$1
)
"
make
DESTDIR
=
"
$dest
"
install
rm
-rf
"
$1
"
/
{
share,lib/pkgconfig
}
skip
=
1
}
This diff is collapsed.
Click to expand it.
recipes/expat/recipe.sh
0 → 100644
+
37
−
0
View file @
f666977d
VERSION
=
2.2.1
TAR
=
http://downloads.sourceforge.net/project/expat/expat/
$VERSION
/expat-
$VERSION
.tar.bz2
HOST
=
x86_64-elf-redox
function
recipe_version
{
echo
"
$VERSION
"
skip
=
1
}
function
recipe_update
{
echo
"skipping update"
skip
=
1
}
function
recipe_build
{
./configure
--host
=
${
HOST
}
--prefix
=
/
make
-j
"
$(
nproc
)
"
skip
=
1
}
function
recipe_test
{
echo
"skipping test"
skip
=
1
}
function
recipe_clean
{
make clean
skip
=
1
}
function
recipe_stage
{
dest
=
"
$(
realpath
$1
)
"
make
DESTDIR
=
"
$dest
"
install
rm
-rf
"
$1
"
/
{
lib/pkgconfig,share
}
skip
=
1
}
This diff is collapsed.
Click to expand it.
recipes/git/recipe.sh
+
6
−
3
View file @
f666977d
VERSION
=
2.13.1
TAR
=
https://www.kernel.org/pub/software/scm/git/git-
$VERSION
.tar.xz
BUILD_DEPENDS
=(
zlib
)
BUILD_DEPENDS
=(
zlib
curl openssl expat
)
HOST
=
x86_64-elf-redox
...
...
@@ -16,7 +16,7 @@ export RANLIB="${HOST}-ranlib"
export
READELF
=
"
${
HOST
}
-readelf"
export
STRIP
=
"
${
HOST
}
-strip"
MAKEFLAGS
=
"NO_MMAP=1"
MAKEFLAGS
=
"NO_MMAP=1
NEEDS_SSL_WITH_CURL=1 NEEDS_CRYPTO_WITH_SSL=1
"
function
recipe_version
{
echo
"
$VERSION
"
...
...
@@ -29,7 +29,10 @@ function recipe_update {
}
function
recipe_build
{
./configure
--host
=
${
HOST
}
--prefix
=
/
--with-zlib
=
"
${
PWD
}
/../sysroot"
ac_cv_fread_reads_directories
=
yes
ac_cv_snprintf_returns_bogus
=
yes
sysroot
=
"
${
PWD
}
/../sysroot"
export
LDFLAGS
=
"-L
$sysroot
/lib"
export
CPPFLAGS
=
"-I
$sysroot
/include"
./configure
--host
=
${
HOST
}
--prefix
=
/
ac_cv_fread_reads_directories
=
yes
ac_cv_snprintf_returns_bogus
=
yes
ac_cv_lib_curl_curl_global_init
=
yes
CURL_CONFIG
=
no
make
${
MAKEFLAGS
}
skip
=
1
}
...
...
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