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
4a3a60f1
Commit
4a3a60f1
authored
Feb 12, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpine.mk: do not create the /apks/ dir for packages
parent
c73a8cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
alpine.mk
alpine.mk
+14
-12
No files found.
alpine.mk
View file @
4a3a60f1
...
...
@@ -83,6 +83,7 @@ REPOS_DIRSTAMP := $(DESTDIR)/stamp.repos
$(REPOS_DIRSTAMP)
:
$(SOURCE_APKBUILDS)
@
echo
"==> repositories:
$(REPOS)
"
@
buildrepo
-p
-a
$(APORTS_DIR)
-d
$(REPOS_DIR)
$(REPOS)
@
touch
$@
#
# Modloop
...
...
@@ -151,6 +152,7 @@ ifeq ($(APK_BIN),)
$(INITFS_DIR)/sbin/apk
:
$(APK_TOOLS_APK) $(INITFS_DIRSTAMP)
@
echo
"==> initramfs:
$(
notdir
$(APK_TOOLS_APK)
)
"
@
tar
-C
$(INITFS_DIR)
-xzf
$(APK_TOOLS_APK)
sbin/apk
@
touch
$@
else
$(INITFS_DIR)/sbin/apk
:
$(APK_BIN) $(INITFS_DIRSTAMP)
@
echo
"==> initramfs: copy
$(APK_BIN)
from buildroot"
...
...
@@ -202,17 +204,17 @@ $(ISOLINUX_CFG):
@
echo
" append initrd=/boot/
$(KERNEL_NAME)
.gz alpine_dev=cdrom modules=floppy quiet"
>>
$(ISOLINUX_CFG)
ISO_KERNEL
:=
$(ISO_DIR)
/boot/
$(KERNEL_NAME)
ISO_APKS
:=
$(ISO_DIR)
/apks
ISO_APKINDEX
:=
$(ISO_APKS)
/APK_INDEX.gz
$(ISO_APKS)
:
$(SOURCE_APKS)
@
echo
"==> iso: prepare APK repository"
@
rm
-rf
$(ISO_APKS)
@
mkdir
-p
$(ISO_APKS)
@
for
a
in
$(SOURCE_APKS)
;
do
\
ln
-f
$$
a
$(ISO_APKS)
2>/dev/null
||
cp
$$
a
$(ISO_APKS)
;
\
done
@
apk index
$(SOURCE_APKS)
|
gzip
-9
>
$(ISO_APKINDEX)
#
ISO_APKS := $(ISO_DIR)/apks
#
ISO_APKINDEX := $(ISO_APKS)/APK_INDEX.gz
#
$(ISO_APKS): $(SOURCE_APKS)
#
@echo "==> iso: prepare APK repository"
#
@rm -rf $(ISO_APKS)
#
@mkdir -p $(ISO_APKS)
#
@for a in $(SOURCE_APKS) ; do \
#
ln -f $$a $(ISO_APKS) 2>/dev/null || cp $$a $(ISO_APKS) ; \
#
done
#
@apk index $(SOURCE_APKS) | gzip -9 > $(ISO_APKINDEX)
$(ISO_KERNEL)
:
$(KERNEL_APK)
@
echo
"==> iso: install kernel
$(KERNEL)
"
...
...
@@ -221,7 +223,7 @@ $(ISO_KERNEL): $(KERNEL_APK)
@
rm
-f
$(ISO_DIR)
/.[A-Z]
*
@
touch
$(ISO_KERNEL)
$(ISO)
:
$(MODLOOP) $(INITFS) $(ISOLINUX_CFG) $(ISOLINUX_BIN) $(ISO_KERNEL)
$(ISO_APKS)
$(ISO)
:
$(MODLOOP) $(INITFS) $(ISOLINUX_CFG) $(ISOLINUX_BIN) $(ISO_KERNEL)
@
echo
"==> iso: building
$(
notdir
$(ISO)
)
"
@
echo
"
$(ALPINE_NAME)
-
$(ALPINE_RELEASE)
$(BUILD_DATE)
"
\
>
$(ISO_DIR)
/.alpine-release
...
...
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