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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipck
Commits
5d33eecf
Commit
5d33eecf
authored
10 years ago
by
Daniel Schulte
Browse files
Options
Downloads
Patches
Plain Diff
Workaround für Timestamp Problemem im entpackten initrd/rootfs
parent
317ae8e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+17
-7
17 additions, 7 deletions
Makefile
with
17 additions
and
7 deletions
Makefile
+
17
−
7
View file @
5d33eecf
...
...
@@ -31,6 +31,7 @@ SQUASHFS_SOURCE=$(CASPER_SOURCE_DIR)/filesystem.squashfs
ROOTFS
=
$(
WORKSPACE
)
/
$(
ARCH
)
/rootfs
INITRD
=
$(
WORKSPACE
)
/
$(
ARCH
)
/initrd
INITRD_TARGET
=
$(
WORKSPACE
)
/
$(
ARCH
)
/initrd.lz
STATE_DIR
=
$(
WORKSPACE
)
/
$(
ARCH
)
/state
$(info Architecture
:
$(ARCH) ($(ALTARCH)))
$(info Workspace
:
$(WORKSPACE))
...
...
@@ -38,7 +39,8 @@ $(info Workspace: $(WORKSPACE))
workspace
:
$(WORKSPACE)
$(WORKSPACE)
:
mkdir
-p
$(
WORKSPACE
)
mkdir
-p
"
$(
WORKSPACE
)
"
mkdir
-p
"
$(
STATE_DIR
)
"
iso_download $(ISO_IMAGE)
:
| $(WORKSPACE)
mkdir
-p
"
$(
ISO_IMAGE_DEST
)
"
...
...
@@ -49,38 +51,46 @@ iso_download $(ISO_IMAGE) : | $(WORKSPACE)
cd
"
$(
ISO_IMAGE_DEST
)
"
&&
sha256sum
-c
SHA256SUMS
mv
"
$(
ISO_IMAGE_DEST
)
/
$(
ISO_NAME
)
"
"
$(
ISO_IMAGE
)
"
iso_content $(
INITRD_SOURCE) $(SQUASHFS_SOURCE)
:
$(ISO_IMAGE)
iso_content $(
STATE_DIR)/iso_exctracted
:
$(ISO_IMAGE)
mkdir
-p
"
$(
ISO_CONTENT
)
"
7z x
-o
"
$(
ISO_CONTENT
)
"
-aos
"
$(
ISO_IMAGE
)
"
touch
"
$(
STATE_DIR
)
/iso_exctracted"
iso_clean
:
$(
RM
)
"
$(
ISO_IMAGE
)
"
$(
RM
)
-r
"
$(
ISO_IMAGE_DEST
)
"
$(
RM
)
"
$(
STATE_DIR
)
/iso_exctracted"
#TODO: generic unsquash/squash with magic make variables ($@ etc.)
rootfs_unsquash $(ROOTFS)
:
|
$(S
QUASHFS_SOURCE)
rootfs_unsquash $(ROOTFS)
:
$(S
TATE_DIR)/iso_exctracted
$(
RM
)
-r
"
$(
ROOTFS
)
"
unsquashfs
-f
-d
"
$(
ROOTFS
)
"
"
$(
SQUASHFS_SOURCE
)
"
touch
"
$(
STATE_DIR
)
/rootfs_extracted"
rootfs_prepare
:
$(ROOTFS)
rootfs_prepare
:
$(ROOTFS)
: $(STATE_DIR)/rootfs_extracted
mkdir
-p
"
$(
ROOTFS
)
/remaster"
cp
-Lr
"
$(
CURDIR
)
"
/config/copy_to_rootfs_remaster_dir/
*
"
$(
ROOTFS
)
/remaster"
rootfs_clean
:
$(
RM
)
-r
"
$(
ROOTFS
)
"
$(
RM
)
"
$(
STATE_DIR
)
/rootfs_extracted"
initrd_unpack
:
| $(INITRD_SOURCE)
initrd_unpack
$(STATE_DIR)/initrd_extracted
:
$(STATE_DIR)/iso_exctracted
mkdir
-p
"
$(
INITRD
)
"
cd
"
$(
INITRD
)
"
&&
lzma
-d
<
"
$(
INITRD_SOURCE
)
"
| cpio
-i
touch
"
$(
STATE_DIR
)
/initrd_extracted"
initrd_clean
:
$(
RM
)
-r
"
$(
INITRD
)
"
$(
RM
)
"
$(
INITRD_TARGET
)
"
$(
RM
)
"
$(
STATE_DIR
)
/initrd_extracted"
$(
RM
)
"
$(
STATE_DIR
)
/initrd_remastered"
initrd_remaster
:
initrd_remaster
$(STATE_DIR)/initrd_remastered
:
$(STATE_DIR)/initrd_extracted
$(
CURDIR
)
/scripts/remaster_initrd.sh
"
$(
CURDIR
)
"
"
$(
INITRD
)
"
touch
"
$(
STATE_DIR
)
/initrd_remastered"
initrd_pack
:
initrd_pack
$(INITRD_TARGET)
:
$(STATE_DIR)/initrd_remastered
cd
"
$(
INITRD
)
"
&&
find | cpio
-H
newc
-o
| lzma
-z
>
"
$(
INITRD_TARGET
)
"
config $(CONFIG_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