Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
4cb23d7c
Commit
4cb23d7c
authored
Sep 14, 2010
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop the dummy configure
It wasn't serving any good by now... README++ and cleanups all over the place
parent
9a8f8ef7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
56 deletions
+32
-56
README
README
+14
-1
clean.mk
clean.mk
+2
-2
configure
configure
+0
-29
distro.mk
distro.mk
+8
-8
Makefile
features.in/Makefile
+3
-5
globals.mk.in
image.in/globals.mk.in
+3
-3
iso.mk
iso.mk
+0
-2
profile.mk
profile.mk
+0
-1
Makefile
sub.in/Makefile
+2
-5
No files found.
README
View file @
4cb23d7c
see also http://www.altlinux.org/Mkimage/Profiles/next
see also http://www.altlinux.org/Mkimage/Profiles/next;
quickstart:
make distclean server-light.iso
Концепция:
- метапрофиль служит репозиторием всего возможно нужного для
построения индивидуального профиля, по которому создаётся
итоговый дистрибутив
Особенности:
- метапрофиль может быть полностью read-only
- для сборки подыскивается предпочтительно tmpfs
- в профиль копируются только нужные объекты
Объекты:
Объекты:
- дистрибутивы: distro.mk, могут основываться один на другом;
- дистрибутивы: distro.mk, могут основываться один на другом;
...
...
clean.mk
View file @
4cb23d7c
clean:
clean:
@echo '** cleaning up...'
@echo '** cleaning up...'
@[ -d build/ ] && \
@[ -d build/ ] && \
make
-C build/ $@ GLOBAL_BUILDDIR=$(shell readlink build) \
$(MAKE)
-C build/ $@ GLOBAL_BUILDDIR=$(shell readlink build) \
||:
||:
distclean: clean
distclean: clean
@[ -d build/ ] && \
@[ -d build/ ] && \
rm -rf build/.git; \
rm -rf build/.git; \
make
-C build/ $@ GLOBAL_BUILDDIR=$(shell readlink build) && \
$(MAKE)
-C build/ $@ GLOBAL_BUILDDIR=$(shell readlink build) && \
rm -r $(shell readlink build) && \
rm -r $(shell readlink build) && \
rm build \
rm build \
||:
||:
configure
deleted
100755 → 0
View file @
9a8f8ef7
#!/bin/sh
# this is a chinese configure script:
# it would take any parameters,
# nod the head intelligently,
# and hide 'em beneath the clothes
# (until time comes)
PARAMS
=
"
$@
"
# TODO: grep/validate?
# create suitable temporary directory for this build, then
# copy profiles there to configure a copy, not master tree
# keeping profile itself completely readonly would be nice
#export BUILDDIR="$(bin/mktmpdir mkimage-profiles.build)"
#ls -ld $BUILDDIR
#find image.in -type f -print0 | xargs -r0 cp -at "$BUILDDIR"/ --
#rsync -qaH --delete image.in/ "$BUILDDIR"/
#rm -f "$BUILDDIR"/.config.mk
#touch "$BUILDDIR"/.config.mk
#mkdir "$BUILDDIR"/.mki
#rm -f build
#[ -w . ] \
#&& ln -sf "$BUILDDIR" build \
#|| echo "profile directory readonly: skipping symlinks, env only"
# remember all those --with-*? we'll pass them downstream, honestly
#echo "$PARAMS" > "$BUILDDIR"/.with
distro.mk
View file @
4cb23d7c
...
@@ -5,13 +5,8 @@ CONFIG = $(BUILDDIR)/.config.mk
...
@@ -5,13 +5,8 @@ CONFIG = $(BUILDDIR)/.config.mk
-include features.in/*/config.mk
-include features.in/*/config.mk
# put(), add(), set(), tags()
# put(), add(), set(), tags()
include functions.mk
#
# package list names are considered relative to pkg/lists/
# request particular image subprofile inclusion
sub/%:
$(call put,SUBPROFILES+=$(@:sub/%=%))
# package list names are relative to pkg/lists/
#
#
# $(VAR) will be substituted before writing them to $(CONFIG);
# $(VAR) will be substituted before writing them to $(CONFIG);
# $$(VAR) will remain unsubstituted util $(CONFIG) is included
# $$(VAR) will remain unsubstituted util $(CONFIG) is included
...
@@ -19,7 +14,12 @@ sub/%:
...
@@ -19,7 +14,12 @@ sub/%:
# can change its value during configuration _before_
# can change its value during configuration _before_
# it's actually used)
# it's actually used)
#
#
# tags do boolean expressions: (tag1 && !(tag2 || tag3))
# tags can do boolean expressions: (tag1 && !(tag2 || tag3))
include functions.mk
# request particular image subprofile inclusion
sub/%:
$(call add,SUBPROFILES,$(@:sub/%=%))
distro/init:
distro/init:
@echo "** starting distro configuration build process"
@echo "** starting distro configuration build process"
...
...
features.in/Makefile
View file @
4cb23d7c
...
@@ -2,18 +2,16 @@ include $(BUILDDIR)/.config.mk
...
@@ -2,18 +2,16 @@ include $(BUILDDIR)/.config.mk
# make rsync backups
# make rsync backups
all
:
all
:
for
dir
in
$(FEATURES)
;
do
\
@
for
dir
in
$(FEATURES)
;
do
\
for
sub
in
$(SUBPROFILES)
;
do
\
for
sub
in
$(SUBPROFILES)
;
do
\
dest
=
$$
{
sub%stage1
}
;
\
dest
=
$$
{
sub%stage1
}
;
\
echo
"dir/sub: [
$$
dir/
$$
sub/]"
&&
\
[
-d
$$
dir
/
$$
sub/
]
&&
\
[
-d
$$
dir
/
$$
sub/
]
&&
\
echo
rsync
-ab
$$
dir
/
$$
sub/
$(BUILDDIR)
/
$$
dest/
&&
\
rsync
-ab
$$
dir
/
$$
sub/
$(BUILDDIR)
/
$$
dest/
&&
\
rsync
-ab
$$
dir
/
$$
sub/
$(BUILDDIR)
/
$$
dest/
&&
\
cd
$(BUILDDIR)
/
$$
dest/
&&
\
cd
$(BUILDDIR)
/
$$
dest/
&&
\
git add
.
&&
\
git add
.
&&
\
git commit
-qam
"
$@
/
$$
dir/
$$
sub"
&&
\
git commit
-qam
"
$@
/
$$
dir/
$$
sub"
&&
\
cd
->&/dev/null
;
\
cd
->&/dev/null
;
\
done
;
\
done
;
\
done
;
\
done
find
$(BUILDDIR)
-name
'*~'
@
# these might signal of file clashes
(
or plain dirt
)
@
# these might signal of file clashes
(
or plain dirt
)
@
find
$(BUILDDIR)
-name
'*~'
image.in/globals.mk.in
View file @
4cb23d7c
export
export
MKIMAGE_PREFIX
=
@MKIMAGE_PREFIX@
MKIMAGE_PREFIX
=
@MKIMAGE_PREFIX@
GLOBAL_HSH_APT_CONFIG
=
@APTCONF@
GLOBAL_HSH_APT_CONFIG
=
@APTCONF@
GLOBAL_VERBOSE
=
0
GLOBAL_VERBOSE
?=
0
iso.mk
View file @
4cb23d7c
iso:
iso:
@echo "** starting image build process"
@echo "** starting image build process"
@### setup GLOBAL_BOOT_TYPE, etc
(cd $(BUILDDIR)/; autoconf; ./configure --with-aptconf=$(HOME)/apt/apt.conf) ###
(cd $(BUILDDIR)/; autoconf; ./configure --with-aptconf=$(HOME)/apt/apt.conf) ###
$(MAKE) -C $(BUILDDIR)/ GLOBAL_BUILDDIR=$(BUILDDIR)
$(MAKE) -C $(BUILDDIR)/ GLOBAL_BUILDDIR=$(BUILDDIR)
@# check iso size
profile.mk
View file @
4cb23d7c
profile/init:
profile/init:
@echo "** BUILDDIR: $(BUILDDIR)"
@echo "** BUILDDIR: $(BUILDDIR)"
# ls -ld $(BUILDDIR)
@rsync -qaH --delete image.in/ "$(BUILDDIR)"/
@rsync -qaH --delete image.in/ "$(BUILDDIR)"/
@touch "$(BUILDDIR)"/.config.mk
@touch "$(BUILDDIR)"/.config.mk
@mkdir "$(BUILDDIR)"/.mki
@mkdir "$(BUILDDIR)"/.mki
...
...
sub.in/Makefile
View file @
4cb23d7c
include
$(BUILDDIR)/.config.mk
include
$(BUILDDIR)/.config.mk
all
:
all
:
ls
-l
$(BUILDDIR)
/.config.mk
@
for
dir
in
$(SUBPROFILES)
;
do
\
echo
--
SUBPROFILES:
$(SUBPROFILES)
for
dir
in
$(SUBPROFILES)
;
do
\
echo
--
rsync
-a
$$
dir
/
$(BUILDDIR)
/
$$
dir
/
&&
\
rsync
-a
$$
dir
/
$(BUILDDIR)
/
$$
dir
/
&&
\
rsync
-a
$$
dir
/
$(BUILDDIR)
/
$$
dir
/
&&
\
cd
$(BUILDDIR)
/
$$
dir
/
&&
\
cd
$(BUILDDIR)
/
$$
dir
/
&&
\
git add
.
&&
\
git add
.
&&
\
...
@@ -13,7 +10,7 @@ all:
...
@@ -13,7 +10,7 @@ all:
done
done
clean
:
clean
:
for
dir
in
$(SUBPROFILES)
;
do
\
@
for
dir
in
$(SUBPROFILES)
;
do
\
[
-n
"
$$
dir"
]
&&
\
[
-n
"
$$
dir"
]
&&
\
rm
-rf
$(BUILDDIR)
/
$$
dir
&&
\
rm
-rf
$(BUILDDIR)
/
$$
dir
&&
\
mkdir
-p
$(BUILDDIR)
/
$$
dir
||
:
;
\
mkdir
-p
$(BUILDDIR)
/
$$
dir
||
:
;
\
...
...
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