Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-system
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
certo
build-system
Commits
5373c439
Commit
5373c439
authored
Sep 12, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.iszf.irk.ru/certo/build-system
parents
08350fe4
320eebfb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
common.xml
common.xml
+56
-0
No files found.
common.xml
View file @
5373c439
...
...
@@ -449,6 +449,62 @@ rm /lib/systemd/system/build
</exec>
</target>
<target
name=
"reduce-locales"
>
<fail
unless=
"BOARD"
message=
"Correct machine type must be specified"
/>
<antcall
target=
"copy-to-secondary"
/>
<antcall
target=
"mount"
/>
<antcall
target=
"setup-reduce-locales"
/>
<antcall
target=
"unmount"
/>
<antcall
target=
"run-system-with-secondary-${BOARD}"
/>
<antcall
target=
"check-reduce-locales-success"
/>
<antcall
target=
"copy-back"
/>
</target>
<target
name=
"setup-reduce-locales"
>
<antcall
target=
"setup-reduce-locales-ab"
/>
</target>
<target
name=
"setup-reduce-locales-ab"
if=
"ABstart"
>
<delete
file=
"${sysdir}/.success"
/>
<echo
file=
"${sysdir}/lib/systemd/system/reduce-locales.service"
>
[Unit]
Description=Reduce locales
[Service]
Type=oneshot
StandardOutput=tty
ExecStart=/lib/systemd/system/reduce-locales
ExecStartPost=/sbin/poweroff
[Install]
WantedBy=rescue.target
</echo>
<echo
file=
"${sysdir}/lib/systemd/system/reduce-locales"
>
#!/bin/sh
/sbin/fsck -yf /dev/${SECONDARY}2
/bin/mount -o discard /dev/${SECONDARY}2 /mnt
rm /mnt/usr/lib/locale/locale-archive
chroot mnt localedef -i en_GB -f UTF-8 en_GB.UTF-8
/bin/umount /dev/${SECONDARY}2
/bin/mount -o remount,rw /
/usr/bin/touch /.success
/bin/rm -rf /etc/systemd/system/rescue.target.wants
/bin/rm /lib/systemd/system/reduce-locales.service
/bin/rm /lib/systemd/system/reduce-locales
</echo>
<chmod
file=
"${sysdir}/lib/systemd/system/reduce-locales"
perm=
"755"
/>
<mkdir
dir=
"${sysdir}/etc/systemd/system/rescue.target.wants"
/>
<exec
executable=
"ln"
failonerror=
"true"
>
<arg
line=
"-s /lib/systemd/system/reduce-locales.service ${sysdir}/etc/systemd/system/rescue.target.wants/reduce-locales.service"
/>
</exec>
</target>
<target
name=
"check-reduce-locales-success"
>
<antcall
target=
"mount"
/>
<available
file=
"${sysdir}/.success"
property=
"success"
/>
<delete
file=
"${sysdir}/.success"
/>
<antcall
target=
"unmount"
/>
<fail
message=
"Locale reduction has failed"
unless=
"success"
/>
</target>
<target
name=
"build-image"
>
<fail
unless=
"BOARD"
message=
"Correct machine type must be specified"
/>
<antcall
target=
"mount"
/>
...
...
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