Commit Graph

37 Commits

Author SHA1 Message Date
Dongjin Kim
60d20f79c8 Add Ubuntu 20.04 Gnome Desktop build flavour
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I30c0139e8d70ea472fac2b0f035f66897178653b
2022-03-15 20:58:28 +09:00
Dongjin Kim
832590e69c Add to use 'server' image to build a desktop flavour image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Icb716a312f33a3681250cca1459980086411b7cb
2022-03-05 20:11:32 +09:00
Dongjin Kim
dcad4bb4fe Apply build flavour specific packages and overlay files
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I27d9f3d891141c80a5143f88e15e45c0d6830c12
2022-03-05 20:11:32 +09:00
Dongjin Kim
04c1aace65 Fix to get the options for 'apt install' from build target
Desktop package needs to install the recommended packages for better UX,
such packages will be installed without '--no-install-recommends' in
'apt install' command.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib024fa218b6d87d5df68f00e81584be87c4b7daa
2022-03-05 20:11:31 +09:00
Dongjin Kim
6f9ebd3395 functions: add to run board specific fixup scripts
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I8f7685f57c36f85e0ec97d71237c346e1e7ee49d
2022-03-05 20:11:31 +09:00
Dongjin Kim
5a43c1b0b7 Fix to build for internal project with 'INTERNAL=true'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4b130880f09437ec547f479f8846c75976f75849
2022-03-05 20:11:28 +09:00
Dongjin Kim
967d42cb1b Add dummy function for a board without U-Boot
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I3d4d17d5e5eafdcf38bda0866fec4dc5817e89c8
2022-03-05 20:11:24 +09:00
Dongjin Kim
8c7a0bac78 Copy file list to top directory of partition as '.filesystem'
The file '.filesystem' contains the files that must be copied and stored
in the partition.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I92ac336f23e70846f81c419d18a176e475cdb609
2021-05-08 04:14:19 +09:00
Dongjin Kim
b2e2313ed0 Add to create custom partitions to live boot system
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6eb71c5dded45c689400599a799eac8f38cbb0bd
2021-05-07 00:38:05 +09:00
Dongjin Kim
ed97976295 Add '*.squashfs' as a base root file system to build from
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6cff24d66dc2b5b6b2286cd18cc54941a79aba1a
2021-05-02 10:42:47 +00:00
Dongjin Kim
b0c52ac97c Add to create file system with given file list
This patch will create a partition image with given file list in a file.

For example, suppose we have 'vendor.list' that contains files

  $ cat custom/templates/oem/vendor.list
  /etc/hostname

And give the file name 'vendor.list' to 'hooks/partition' with a certain
partition list.

  $ cat custom/templates/oem/hooks/partition
  oem_mkfs_ext4 5 vendor vendor.list
  oem_mkfs_ext4 6 app
  oem_mkfs_ext4 7 lib

The partition labeled by 'vendor' will contains the files as listed in
'vendor.list'.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie4e80762f2d1c43c77dd941213f449dc3792fcbf
2021-05-02 04:05:16 +09:00
Dongjin Kim
258a4b1ea9 Copy files in '*/overlay/*' after running fixup scripts
This patch is to overwrite successfully the file installed by a package.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I743cb8dc23dc86ef272312b6f4fdd41fa4d46261
2021-05-01 16:25:41 +09:00
Dongjin Kim
28d4caa447 command: add new build flag '--keep-builddir'
The working directory contains the files of a target OS system to build
and it's the source to create partitions and OS image. With the flag
'--keep-builddir' won't remove the working directory after the target OS
image is built such that one can traverse the file system in the build
machine. By default, the working directory will be removed.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I00e8488797535410fde6dbd01249ecb8ebc1ae56
2021-04-20 11:41:49 +09:00
Dongjin Kim
87f3cbffbf Add to support comments start with '#' or ';'
This patch allows to describe the package list with comments in
the file 'packages'.

	; Fundamental package list to build LAMP server

	# Install MySQL
	mysql-client		# Client
	mysql-server		# Server

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I32ffc3e845b3ff7b05b81a26d99e83ed55488f97
2021-04-13 22:21:14 +09:00
Dongjin Kim
221d184ae4 Fix long filename support on ISO image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I46d08b713d24284698fa3c6459d48051271a3812
2021-04-07 16:17:59 +09:00
Dongjin Kim
ada20903f5 Add to build ISO image and apply to Live System image
Add 'ISOIMAGE=true' to config file for target image

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ibec11c57ac8c256d8436e70353de72376f8280cd
2021-04-01 14:03:06 +09:00
Dongjin Kim
ac136d299e Change 'LIVEBOOT' to 'LIVESYSTEM'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I894684aac8d8831c7eb30e97c0aa35bcdb5affc7
2021-04-01 12:53:24 +09:00
Dongjin Kim
09c7fcf46e Improve partition size calculation when creating an image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib2528702f888c954f47a4f1e83bd6ca4e81a713a
2021-03-17 22:21:55 +09:00
Dongjin Kim
1bc9905ce6 Move 'custom/liveboot' to 'custom/templates/liveboot'
Change-Id: I038c6924222c83f7297cb055588938afeca9ff84
2021-03-12 14:45:41 +09:00
Dongjin Kim
b446a663f2 Add to OEM customizable partition layout
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib07e525ef2ede94f4b7aaf9555b283c84de2b318
2021-03-12 14:45:37 +09:00
Dongjin Kim
15a6852bf2 Add to create root file system running in RAM.
This commit is to crate the root file system with squash file system so
the OS runs on the memory.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I486224ddb074031a38dda6d3e9f2dcf5ee144fd9
2021-03-05 02:51:33 +09:00
Dongjin Kim
e3a71292c2 Remove test code merged by accident
Change-Id: I1a9276c71d3290220043a4d41dd51343c6bf7fd3
2021-03-04 16:21:16 +09:00
Dongjin Kim
28f2a06f18 Fix double compression whe finishing the OS image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I9e81262917eccd1b796f84e8f327579afe7b7197
2021-03-04 12:11:38 +09:00
Dongjin Kim
9b64051b12 Add to use custom OS configuration
-- custom/<Name>/config     -> OS image configuration
                    /packages   -> package list to install
                    /fixups/*   -> Directory to run fix up OS image

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ibc182c03a38ba82f411c1fc5a5ebd5c2254c5609
2021-01-28 19:36:38 +09:00
Dongjin Kim
88d71eba5a Remove default root user so the default user will become root
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2021-01-19 17:23:45 +09:00
Dongjin Kim
b28f8c0ea1 Remove absolute path in the md5sum file for the image file.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia6410c1314f95dd40bfa809f023e6f8e7c483b3c
2020-11-22 16:47:25 +09:00
Dongjin Kim
fb6f744b4b add 'get_uuid_by_path()' to get UUID by the given path
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I432d051ee1f0424ede9736985d7991ac52bb551a
2020-11-22 02:46:41 +09:00
Dongjin Kim
b3afb95c60 Add to compress the final image with 'xz'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib09b5033e95ce4b653e7f30c76b25a3bb824ed32
2020-11-22 02:15:37 +09:00
Dongjin Kim
4021644f94 Change to get common packages from 'config/*.packages
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie22a6c70d76f1b9fc93a063af43735bce7ad8556
2020-11-22 02:15:37 +09:00
Dongjin Kim
9963ff65f7 Add internal repository for testing
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Idd57aa96772d2fff07641dcd82cdfedbf7bfd903
2020-07-13 10:25:31 +09:00
Dongjin Kim
6ab89c1e98 Fix typo in 'functions'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iaa656a1441b4e671385ec323e6f1d3b8725530af
2020-05-25 22:52:46 +09:00
Dongjin Kim
14ef483448 Fix to use number version instead of codename to the image file name
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I1af52b44b56ea27a8d72551863344542a9a814e1
2020-04-22 22:30:18 +09:00
Dongjin Kim
9916a06c42 function: add to copy an fixups/overlay directory in working directory.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5e085fa5ea07c97855e463530cf4ce3d566d0769
2020-03-31 19:37:59 +09:00
Dongjin Kim
0472009f75 Fix to use package install directories
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I31cd885620a0cdc37794e514dc6088a64e774ec7
2020-03-31 11:34:06 +09:00
Dongjin Kim
b69dfcb678 fixup: set machine type earlier for 'flash-kernel'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I930cdb77ccf65596b23e2d29542d3e9e05882b3f
2020-03-26 05:14:49 +09:00
Dongjin Kim
95219cff82 Fix to decide the partition sizes after building file system
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie65c9eafba9ca30711aec5b7185306b4b5df04e0
2020-03-26 05:14:44 +09:00
Dongjin Kim
2828dcf972 The first commit for the script tool 'ODROID-STAMPER'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-26 22:07:37 +09:00