Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adélie Linux
abuild
Commits
78e0ab1f
Commit
78e0ab1f
authored
Feb 11, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpine.mk: initial support for other kernel flavors
parent
0c3be1ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
alpine.mk
alpine.mk
+19
-7
No files found.
alpine.mk
View file @
78e0ab1f
...
...
@@ -14,8 +14,10 @@ ISO_DIR := $(DESTDIR)/isofs
find_apk
=
$(
firstword
$(
wildcard
$(
addprefix
$(APKDIRS)
,
$(1)
-[0-9]
*
.apk
)))
KERNEL_APK
:=
$(
call
find_apk,linux-grsec
)
MODULE_APK
:=
$(
wildcard
$(
subst
/linux-grsec-,/linux-grsec-mod-,
$(KERNEL_APK)
))
KERNEL_FLAVOR
?=
linux-grsec
KERNEL_NAME
:=
$(
subst
linux-,,
$(KERNEL_FLAVOR)
)
KERNEL_APK
:=
$(
call
find_apk,
$(KERNEL_FLAVOR)
)
MODULE_APK
:=
$(
wildcard
$(
subst
/
$(KERNEL_FLAVOR)
-,/
$(KERNEL_FLAVOR)
-mod-
,
$(KERNEL_APK)
))
KERNEL
:=
$(
word
3,
$(
subst
-, ,
$(
notdir
$(KERNEL_APK)
)))
-
$(
word
2,
$(
subst
-, ,
$(
notdir
$(KERNEL_APK)
)))
ALPINEBASELAYOUT_APK
:=
$(
call
find_apk,alpine-baselayout
)
...
...
@@ -37,6 +39,8 @@ help:
@
echo
@
echo
"Type 'make' to build
$(ISO)
"
@
echo
@
echo
"kernel:
$(KERNEL_NAME)
"
@
echo
@
echo
"I will use the following sources files:"
@
echo
" 1.
$(
notdir
$(KERNEL_APK)
)
(looks like
$(KERNEL)
)"
@
echo
" 2.
$(
notdir
$(MODULE_APK)
)
"
...
...
@@ -55,6 +59,13 @@ clean:
$(INITFS)
$(INITFS_DIRSTAMP)
$(INITFS_DIR)
\
$(ISO_DIR)
#
# Repos
#
APORTS_DIR
:=
REPOS_DIR
:=
$(ISO_DIR)
/packages
REPOS_DIRSTAMP
:=
$(DESTDIR)
/stamp.repos
#
# Modloop
#
...
...
@@ -164,12 +175,12 @@ $(ISOLINUX_CFG):
@
mkdir
-p
$(
dir
$(ISOLINUX_BIN)
)
@
echo
"timeout 20"
>
$(ISOLINUX_CFG)
@
echo
"prompt 1"
>>
$(ISOLINUX_CFG)
@
echo
"default
linux
"
>>
$(ISOLINUX_CFG)
@
echo
"label
linux
"
>>
$(ISOLINUX_CFG)
@
echo
" kernel /boot/
vmlinuz
"
>>
$(ISOLINUX_CFG)
@
echo
"default
$(KERNEL_NAME)
"
>>
$(ISOLINUX_CFG)
@
echo
"label
$(KERNEL_NAME)
"
>>
$(ISOLINUX_CFG)
@
echo
" kernel /boot/
$(KERNAL_NAME)
"
>>
$(ISOLINUX_CFG)
@
echo
" append initrd=/boot/initramfs.gz alpine_dev=cdrom modules=floppy quiet"
>>
$(ISOLINUX_CFG)
ISO_KERNEL
:=
$(ISO_DIR)
/boot/
vmlinuz
ISO_KERNEL
:=
$(ISO_DIR)
/boot/
$(KERNEL_NAME)
ISO_APKS
:=
$(ISO_DIR)
/apks
ISO_APKINDEX
:=
$(ISO_APKS)
/APK_INDEX.gz
...
...
@@ -185,7 +196,8 @@ $(ISO_APKS): $(SOURCE_APKS)
$(ISO_KERNEL)
:
$(KERNEL_APK)
@
echo
"==> iso: install kernel
$(KERNEL)
"
@
mkdir
-p
$(
dir
$(ISO_KERNEL)
)
@
tar
-C
$(ISO_DIR)
-xzf
$(KERNEL_APK)
boot/vmlinuz boot/System.map
@
tar
-C
$(ISO_DIR)
-xzf
$(KERNEL_APK)
@
rm
-f
$(ISO_DIR)
/.[A-Z]
*
@
touch
$(ISO_KERNEL)
$(ISO)
:
$(MODLOOP) $(INITFS) $(ISOLINUX_CFG) $(ISOLINUX_BIN) $(ISO_KERNEL) $(ISO_APKS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment