Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
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
27
Issues
27
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
cb330046
Commit
cb330046
authored
Feb 20, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpine.mk: added xtables-addons
parent
ec6a945d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
alpine.mk
alpine.mk
+11
-3
No files found.
alpine.mk
View file @
cb330046
...
...
@@ -30,6 +30,10 @@ KERNEL_PKGNAME ?= linux-$(KERNEL_FLAVOR)
KERNEL_NAME
:=
$(KERNEL_FLAVOR)
KERNEL_APK
:=
$(
call
find_apk,
$(KERNEL_PKGNAME)
)
MODULE_APK
:=
$(
subst
/
$(KERNEL_PKGNAME)
-,/
$(KERNEL_PKGNAME)
-mod-
,
$(KERNEL_APK)
)
XTABLES_ADDONS_APK
:=
$(
subst
xtables-addons,xtables-addons-
$(KERNEL_FLAVOR)
,
$(
call
find_apk,xtables-addons
))
MOD_APKS
:=
$(MODULE_APK)
$(XTABLES_ADDONS_APK)
KERNEL
:=
$(
word
3,
$(
subst
-, ,
$(
notdir
$(KERNEL_APK)
)))
-
$(
word
2,
$(
subst
-, ,
$(
notdir
$(KERNEL_APK)
)))
ALPINEBASELAYOUT_APK
:=
$(
call
find_apk,alpine-baselayout
)
...
...
@@ -89,6 +93,8 @@ $(REPOS_DIRSTAMP): $(SOURCE_APKBUILDS)
@
buildrepo
-p
-a
$(APORTS_DIR)
-d
$(REPOS_DIR)
$(REPOS)
@
touch
$@
%.apk
:
$(REPOS_DIRSTAMP)
#
# Modloop
#
...
...
@@ -98,11 +104,13 @@ MODLOOP_DIRSTAMP := $(DESTDIR)/stamp.modloop
modloop
:
$(MODLOOP)
$(MODLOOP_DIRSTAMP)
:
$(REPOS_DIRSTAMP) $(MODULE_APK)
@
echo
"==> modloop: prepare
$(KERNEL)
modules
$(
notdir
$(MODULE_APK)
)
"
$(MODLOOP_DIRSTAMP)
:
$(REPOS_DIRSTAMP) $(MOD_APKS)
@
rm
-rf
$(MODLOOP_DIR)
@
mkdir
-p
$(MODLOOP_DIR)
/lib/modules/
@
tar
-C
$(MODLOOP_DIR)
-xzf
$(MODULE_APK)
@
for
i
in
$(MOD_APKS)
;
do
\
echo
"==> modloop: prepare modules
$$
i"
;
\
tar
-C
$(MODLOOP_DIR)
-xzf
"
$$
i"
;
\
done
@
rm
-rf
$(
addprefix
$(MODLOOP_DIR)
/lib/modules/
*
/,
source
build
)
@
depmod
$(KERNEL)
-b
$(MODLOOP_DIR)
@
touch
$(MODLOOP_DIRSTAMP)
...
...
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