Commit Graph

147 Commits

Author SHA1 Message Date
Jeffrey Townsend
d554708b87 Merge pull request #479 from OrdnanceNetworks/fix-onlversion-subst
mkinstaller.py: Substitude ONLVERSION in installer.sh.in template
2018-12-26 09:09:56 -08:00
Jeffrey Townsend
96a697bdcc Tool updates to support armhf. 2018-12-25 15:42:07 +00:00
Jeffrey Townsend
ce19018897 Package Distribution Restrictions
Packages can now restrict the debian distribution for which they can build using the new 'dists' package key.
This is a csv list of distribution codenames. If the currently building distribution is not in the list then
the package is ignored.
2018-12-25 15:29:32 +00:00
Jeffrey Townsend
1e9fbe9932 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux into iproc-4.14
Conflicts:
	packages/base/any/kernels/modules/ym2651y.c
	packages/platforms/accton/armel/arm-accton-as4610/arm-accton-as4610-30/platform-config/r0/builds/dtb/arm-accton-as4610-54-r0.dts
	packages/platforms/accton/armel/arm-accton-as4610/arm-accton-as4610-54/platform-config/r0/builds/dtb/arm-accton-as4610-54-r0.dts
2018-12-20 07:34:35 -08:00
Sergey Popovich
ce306bfe03 mkinstaller.py: Substitude ONLVERSION in installer.sh.in template
To show ONL version at image installation time add --onl-version
option to mkinstaller.py and pass VERSION_STRING to it.

Fixes: 9a98e40c09 ("Use the new mkinstaller script.")
Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-11-07 00:03:42 +02:00
Jeffrey Townsend
789324a016 Enhance for custom includes for kernel module builds. 2018-10-26 00:08:13 +00:00
Jeffrey Townsend
eea5db9aef Fix symbolic link handling in the 'links' package section.
The 'links' section specifies symbolic links which should be added to the package in key : value format.

The key is the source of the link. It must be exist in the filesystem already (as part of the 'files' section)
and be relative to the root of the filesystem.

The value is the name of the link, and can be relative or absolute to the final filesystem.

For example, given that a package produces the real binary "/usr/bin/foobar" and you want /usr/bin/foobar-link -> /usr/bin/foobar
it will be specified as follows:

    links:
        /usr/bin/foobar : /usr/bin/foobar-link
2018-08-08 01:20:06 +00:00
Wataru Ishida
4f803704b1 rfs: fix bug that bash doesn't return on error
bash doesn't respect -ex flags when it is not written in the first line

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-07-13 14:59:47 -07:00
Jeffrey Townsend
5c10874cf4 Allow multistrap config sections to be filtered by architecture. 2018-06-26 21:58:15 +00:00
Wataru Ishida
a681cf6c81 Support building systemd based system
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-05-31 19:41:23 -07:00
Jeffrey Townsend
95917ac48a Small operational improvements. 2018-05-07 16:52:53 +00:00
Jeffrey Townsend
78f953c2fb Add REPO/gitignore. 2018-05-06 19:26:12 +00:00
Jeffrey Townsend
553fbbabfa Initial tool to create NOS repository frameworks based on ONL. 2018-05-06 19:12:22 +00:00
Jeffrey Townsend
fbb7f751a8 Handle directory creation collisions hit during parallel builds. 2018-05-03 19:09:40 +00:00
Jeffrey Townsend
a91f3d7e8f Merge branch 'add-arm64-lts4.9-and-nxp-layerscape-platforms' of github.com:shengzhou/OpenNetworkLinux 2018-04-26 06:53:08 -07:00
Jeffrey Townsend
dce188731e Unbork resolv.conf processing. 2018-04-24 16:38:00 +00:00
Shengzhou Liu
1215e014a0 Update for arm64 on builder9 and arm64-nxp-layerscape struct
Signed-off-by: Guo Hanyue <guo.hanyue@nxp.com>
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
2018-04-24 13:46:35 +08:00
Jeffrey Townsend
1297ea341e Clean the REPO prior to transfer. 2018-04-20 14:10:52 +00:00
Jeffrey Townsend
c50b4bf705 Add verbose option. 2018-04-18 17:03:13 -07:00
Jeffrey Townsend
c43e647c02 Allow a package to declare its desired symlink behavior. 2018-04-18 16:35:26 +00:00
Jeffrey Townsend
b0f4a6f209 Fix resolv.conf restoration. 2018-04-15 23:39:29 +00:00
Jeffrey Townsend
43d76e58f6 RFS Management Enhancements
This is a baby step in reorganizing the RFS tools to support arbitrary automation and modification after
the initial multistrap configuration has been performed.

- All RFS modifications are now done under the new OnlRfsContext object.
  - This object mounts/unmounts /dev and /proc
  - This object installs and removes the local resolv.conf so network operations
    can be performed in the chroot context.
2018-04-15 22:43:43 +00:00
Jeffrey Townsend
fca1b92a9f The postinst script now checks /usr/sbin/policy-rc.d
Some complicated service dependencies will fail to configure
under normal circumstances because invoke-rc.d will kill service
start based on policy-rc.d but this is not taken into account when
configuring services that are dependent on that service.

The dependency check fails prior to the policy-rc.d check and as a result
some packages will remain unconfigured after we have finished constructing
the root filesystem. This is ok for most cases but precludes dynamic modification
of that filesystem post-creation and will even cause
those unconfigured services to be restarted the first time a new package is
installed.

Checking policy-rc.d first in the postinst script allows the configuration
step to complete for all services and their dependents to fix these problems.
2018-04-15 22:32:34 +00:00
Jeffrey Townsend
fde45aafd7 Disable ASR generation by default. Packages using ASR must be updated explicitly. 2018-04-05 17:27:21 +00:00
Jeffrey Townsend
e740ba56ab Merge pull request #319 from carlroth/master
Developer optimizations for incremental rootfs builds
2018-03-19 07:23:02 -07:00
Jeffrey Townsend
e37acae2f7 Disable logfile.: 2018-03-18 16:03:46 +00:00
Jeffrey Townsend
04cc75fc76 Add profiling for ASR generation. 2018-03-16 09:08:21 -07:00
Jeffrey Townsend
21d00075c4 Rudimentary profiling and color enhancements. 2018-03-16 09:06:56 -07:00
Jeffrey Townsend
0b6da573ab Update default versioning scheme for development and release builds.
- Development builds will be marked with the branch and build id.
- Release builds will contain the specific release name and
  a simplified system issue string.
2018-03-14 16:31:31 +00:00
Carl D. Roth
55615155b3 Incremental update/install support
- also add a '--no-configure' flag
2018-02-28 17:41:46 -08:00
Carl D. Roth
7aa876cda4 Enable the --lookup feature 2018-02-28 17:41:16 -08:00
Jeffrey Townsend
316351ce1b Use ONL relative paths. 2018-01-21 20:04:07 +00:00
Jeffrey Townsend
e129347af6 Add an option to enable root accounts after filesystem creation
This is a minor hack. The code should be rearranged to allow
a more natural workflow to modify filesystems post-creation.
2018-01-21 19:09:06 +00:00
Jeffrey Townsend
fafe32df3b Add the option to configure groups. 2018-01-19 08:03:47 -08:00
Jeffrey Townsend
9cd087dcb7 Allow input from both yaml and json. 2018-01-11 20:58:53 +00:00
Jeffrey Townsend
6359a48a65 Enhancements
- All package build step only.
- Evironmental option to skip package scans.
2017-12-31 17:15:14 +00:00
Jeffrey Townsend
dcb4a77b8c Base from $ONL. 2017-12-29 03:36:55 +00:00
Jeffrey Townsend
57195e97ca All editing of an existing json file. 2017-12-27 21:55:49 +00:00
Jeffrey Townsend
8d13652eb6 - Support Debian9
- Deprecate Debian7
2017-08-24 03:22:53 +00:00
Andreas Rammhold
a4cefaf8f5 tools: use /usr/bin/python2 instead of /usr/bin/python
python3 is starting to become the default on all major distributions.
Using `/usr/bin/python2` should be safe for the near future.
2017-06-30 11:40:29 +02:00
Jeffrey Townsend
fbc38a58b5 Change extract message from warn to info. 2017-05-23 08:12:43 -07:00
Jeffrey Townsend
79a9f9b459 Add post-install update hook.
TODO: parameterize
2017-05-15 14:31:24 -07:00
Jeffrey Townsend
f0c01c6955 The base-files package has a known incompatible assumption about /var/run which fails to work properly when the system was built using multistrap.
This change patches the base-files.postinst script to fix this issue prior to calling dpkg --configure.
2017-05-02 22:52:49 +00:00
Jeffrey Townsend
48bd05aca5 Build missing packages. 2017-02-22 02:10:22 +00:00
Jeffrey Townsend
61686c5b50 Improve output. 2017-02-21 18:43:35 +00:00
Jeffrey Townsend
5b46c04e24 Allow absolute paths (relative to the package root). 2017-02-15 18:36:53 +00:00
Jeffrey Townsend
61f9268995 Allow optional files in package declarations.
Files listed in the new 'optional-files' key will be included if present
but will not report packaging errors if missing.
2017-02-15 15:58:31 +00:00
Jeffrey Townsend
395108618c Add local device tree compiler to support out-of-tree DTS compilation. 2017-02-15 15:56:25 +00:00
Jeffrey Townsend
0b3dd1ba6a Add --ky to add YAML data. 2017-02-08 15:51:06 +00:00
Jeffrey Townsend
4391aed630 Improve comment. 2017-01-08 20:12:37 +00:00