Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
osak
lipck
Commits
5f4df152
Commit
5f4df152
authored
10 years ago
by
Daniel Schulte
Browse files
Options
Downloads
Patches
Plain Diff
Targets zum Image bauen hinzugefügt. Repository in default config eingefügt
parent
9b3aa43c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+35
-3
35 additions, 3 deletions
Makefile
config/Makefile.conf.defaults
+3
-0
3 additions, 0 deletions
config/Makefile.conf.defaults
with
38 additions
and
3 deletions
Makefile
+
35
−
3
View file @
5f4df152
...
...
@@ -26,6 +26,7 @@ ARCH_DIR=$(call archdir,$(ARCH))
PRIMARY_ARCH_DIR
=
$(
call archdir,
$(
PRIMARY_ARCH
))
SECONDARY_ARCH_DIR
=
$(
call archdir,
$(
SECONDARY_ARCH
))
COMMON_DIR
=
$(
WORKSPACE
)
/common
IMAGE_DIR
=
$(
WORKSPACE
)
/image
define
gentargets =
$(PRIMARY_ARCH_DIR)$1 $(SECONDARY_ARCH_DIR)$1
:
$(call archdir
,
%)$1
...
...
@@ -164,10 +165,10 @@ rootfs_deduplicate $(COMMON_DIR)$(STATE_DIR)/rootfs_deduplicated: $(PRIMARY_ARCH
cd
"
$(
COMMON_DIR
)
/lip-
$(
SECONDARY_ARCH
)
"
&&
tr
\\
n
\\
0 <
"
$(
COMMON_DIR
)
/common_files.list"
| xargs
-0
rm
touch
"
$(
COMMON_DIR
)$(
STATE_DIR
)
/rootfs_deduplicated"
$(COMMON_DIR)/lip%.squashfs
:
$(COMMON_DIR)$(STATE_DIR)/rootfs_deduplicated | $(COMMON_DIR)/lip-%
mksquashfs
"
$(
COMMON_DIR
)
/lip-
$*
"
"
$(
COMMON_DIR
)
/lip
$*
.squashfs"
-comp
xz
$(COMMON_DIR)/lip
-
%.squashfs
:
$(COMMON_DIR)$(STATE_DIR)/rootfs_deduplicated | $(COMMON_DIR)/lip-%
mksquashfs
"
$(
COMMON_DIR
)
/lip-
$*
"
"
$(
COMMON_DIR
)
/lip
-
$*
.squashfs"
-comp
xz
rootfs_squash
:
$(COMMON_DIR)/lip$(PRIMARY_ARCH).squashfs $(COMMON_DIR)/lip$(SECONDARY_ARCH).squashfs $(COMMON_DIR)/lipcommon.squashfs
rootfs_squash
:
$(COMMON_DIR)/lip
-
$(PRIMARY_ARCH).squashfs $(COMMON_DIR)/lip
-
$(SECONDARY_ARCH).squashfs $(COMMON_DIR)/lip
-
common.squashfs
initrd_unpack
:
$(ARCH_DIR)$(STATE_DIR)/initrd_extracted
$(call gentargets,$(STATE_DIR)/initrd_extracted)
:
$(call archdir
,
%)$(STATE_DIR)/iso_extracted
...
...
@@ -190,6 +191,37 @@ initrd_pack : $(ARCH_DIR)$(INITRD_TARGET)
$(call gentargets,$(INITRD_TARGET))
:
$(call archdir
,
%)$(STATE_DIR)/initrd_remastered
cd
"
$(
call archdir,
$*
)$(
INITRD
)
"
&&
find | cpio
-H
newc
-o
| lzma
-z
>
"
$(
call archdir,
$*
)$(
INITRD_TARGET
)
"
image_git $(IMAGE_DIR)/.git
:
|$(WORKSPACE)
mkdir
-p
"
$(
IMAGE_DIR
)
"
test
!
-e
"
$(
IMAGE_DIR
)
/.git"
cd
"
$(
IMAGE_DIR
)
"
&&
git clone
"
$(
IMAGE_GIT_URL
)
"
.
image_git_pull
:
|$(IMAGE_DIR)/.git
cd
"
$(
IMAGE_DIR
)
"
&&
./scripts/update_stick.sh
"
$(
IMAGE_GIT_BRANCH
)
"
IMAGE_BINARIES
=
$(
COMMON_DIR
)
/lip-
$(
PRIMARY_ARCH
)
.squashfs
$(
COMMON_DIR
)
/lip-
$(
SECONDARY_ARCH
)
.squashfs
$(
COMMON_DIR
)
/lip-common.squashfs
\
$(
PRIMARY_ARCH_DIR
)$(
INITRD_TARGET
)
$(
SECONDARY_ARCH_DIR
)$(
INITRD_TARGET
)
\
$(
PRIMARY_ARCH_DIR
)$(
STATE_DIR
)
/iso_extracted
$(
SECONDARY_ARCH_DIR
)$(
STATE_DIR
)
/iso_extracted
image_binary_files
:
image_git_pull $(IMAGE_BINARIES)
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/boot"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/dists"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/isolinux"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/pool"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/EFI"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/preserved"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/.disk"
"
$(
IMAGE_DIR
)
/"
cp
-r
"
$(
SECONDARY_ARCH_DIR
)$(
ISO_CONTENT
)
/.disk/casper-uuid-generic"
"
$(
IMAGE_DIR
)
/.disk/casper-uuid-generic-
$(
SECONDARY_ARCH
)
"
mkdir
-p
"
$(
IMAGE_DIR
)
/casper"
cp
"
$(
COMMON_DIR
)
/lip-common.squashfs"
"
$(
IMAGE_DIR
)
/casper/"
cp
"
$(
COMMON_DIR
)
/lip-
$(
PRIMARY_ARCH
)
.squashfs"
"
$(
IMAGE_DIR
)
/casper/"
cp
"
$(
COMMON_DIR
)
/lip-
$(
SECONDARY_ARCH
)
.squashfs"
"
$(
IMAGE_DIR
)
/casper/"
cp
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/casper/filesystem.manifest"
"
$(
IMAGE_DIR
)
/casper/"
cp
"
$(
PRIMARY_ARCH_DIR
)$(
ISO_CONTENT
)
/casper/filesystem.manifest-remove"
"
$(
IMAGE_DIR
)
/casper/"
cp
"
$(
PRIMARY_ARCH_DIR
)$(
INITRD_TARGET
)
"
"
$(
IMAGE_DIR
)
/casper/initrd-
$(
PRIMARY_ARCH
)
.lz"
cp
"
$(
SECONDARY_ARCH_DIR
)$(
INITRD_TARGET
)
"
"
$(
IMAGE_DIR
)
/casper/initrd-
$(
SECONDARY_ARCH
)
.lz"
cd
"
$(
PRIMARY_ARCH_DIR
)$(
ROOTFS
)
"
&&
cp
-L
vmlinuz
"
$(
IMAGE_DIR
)
/casper/vmlinuz-
$(
PRIMARY_ARCH
)
"
cd
"
$(
SECONDARY_ARCH_DIR
)$(
ROOTFS
)
"
&&
cp
-L
vmlinuz
"
$(
IMAGE_DIR
)
/casper/vmlinuz-
$(
SECONDARY_ARCH
)
"
config $(CONFIG_FILE)
:
$(
info Generating configuration
$(
CONFIG_FILE
))
echo
-n
""
>
$(
CONFIG_FILE
)
...
...
This diff is collapsed.
Click to expand it.
config/Makefile.conf.defaults
+
3
−
0
View file @
5f4df152
...
...
@@ -7,3 +7,6 @@ ISO_BASE_URL=http://cdimage.ubuntu.com/kubuntu/releases
ISO_RELEASE
=
trusty
ISO_VERSION
=
14.04.1
ISO_FLAVOR
=
kubuntu
IMAGE_GIT_URL
=
https://learninglinux.fsmpi.rwth-aachen.de/git/lipstick.git
IMAGE_GIT_BRANCH
=
ws14
\ No newline at end of file
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