ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Sheplyakov <asheplyakov@basealt.ru>
To: devel@lists.altlinux.org
Cc: saratov@lists.altlinux.org
Subject: Re: [devel] mkimage: улучшение кросс-сборки
Date: Mon, 6 Jul 2020 22:42:56 +0400
Message-ID: <ae97d6eb-1281-e31f-a89a-24235838ff67@basealt.ru> (raw)
In-Reply-To: <46e63dd1-8f45-6de6-5815-f4d4c012d97d@basealt.ru>

Добрый вечер!

On 7/3/20 11:33 AM, Alexey Sheplyakov wrote:

> У меня образовалась парочка патчей для сборки "чужих" образов
> (например, aarch64 на x86_64). Предполагаю, что они могут быть
> полезны не только для меня, но и для людей, собирающих mipsel
> и arm образы (на x86 системах). Потому решил поделиться.
> 
> 1) Added squashfs-tools-static:
> http://git.altlinux.org/people/asheplyakov/packages/?p=squashfs-tools.git;a=commitdiff;h=a04d85bd1e0552f8c0b8a079bac604edc453c225;hp=2d84d7fa460eab92f596747ff9a75e9e37972389
> 
> 2) mki-pack-squash: make use of native mksquashfs
> http://git.altlinux.org/people/asheplyakov/packages/?p=mkimage.git;a=commitdiff;h=acf3a2e6627b640d01abef6b0a4c9db86c809bdb;hp=66a9f190881a3c9c5f582507faa95d154ffcb005

Обнаружил, что по дороге потерялось

opts="$opts -all-root"

А потом обнаружил, что использовать -all-root не вполне корректно.
Потому обучил mksquashfs вычитывать владельца/группу/права/спец файлы
напрямую из файла состояния fakeroot (.fakedata):
http://git.altlinux.org/people/asheplyakov/packages/?p=squashfs-tools.git;a=commitdiff;h=e9a9a7104a061e0c7715cbaabefe516af8d8ed71

Итого. Если кто захочет воспользоваться, берите отсюда:

squashfs-tools: http://git.altlinux.org/people/asheplyakov/packages/?p=squashfs-tools.git;a=shortlog;h=refs/heads/mksquashfs-static
(commit id 926ce09415eb1a36362bde8863adfbb9fc6f80a9)

mkimage: http://git.altlinux.org/people/asheplyakov/packages/?p=mkimage.git;a=shortlog;h=refs/heads/crossbuild-use-native-mksquashfs
(commit id 371c84fdbc155213d7f8d3c99b45d8426f954b45)


      reply	other threads:[~2020-07-06 18:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-03  7:33 Alexey Sheplyakov
2020-07-06 18:42 ` Alexey Sheplyakov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae97d6eb-1281-e31f-a89a-24235838ff67@basealt.ru \
    --to=asheplyakov@basealt.ru \
    --cc=devel@lists.altlinux.org \
    --cc=saratov@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git