Commit graph

74 commits

Author SHA1 Message Date
Levin Du
de4cb7722d Docker: add docker shell support (#1612)
This allows to enter the docker container in a shell by:

    ./compile.sh docker-shell
        BOARD=firefly-rk3399 BRANCH=dev RELEASE=bionic BUILD_DESKTOP=no

Then you can build the whole thing in the docker shell with:

    ./compile.sh

Once you need to build the U-Boot only for development purpose, you can run:

    # Optional: prepare the environment first if you had not run `./compile.sh`
    ./compile.sh 'prepare_host && compile_sunxi_tools && install_rkbin_tools'

    # build the U-Boot only
    ./compile.sh compile_uboot

If you prefer to use profile, for example, `userpatches/config-my.conf`,  try:

    ./compile.sh my 'prepare_host && compile_sunxi_tools && install_rkbin_tools'
    ./compile.sh my compile_uboot

This commit also fixes #1638.
2019-11-28 15:24:22 +01:00
Levin Du
77a2dba163 Support eval bash statement in ./compile.sh (#1616)
Currently, invoking compile.sh will run its mono task of building all the
components into a final image.

In some situation, especially when developing with Kernel or U-Boot, it is
handy to run a portion of that great task like:

    export BOARD=firefly-rk3399
    export BRANCH=dev
    # more to avoid the popup of dialog
    ./compile.sh 'fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"'
    ./compile.sh 'compile_uboot'

or use a profile to keep things simple:

    ./compile.sh default BRANCH=dev 'compile_uboot'
2019-11-26 18:00:39 +01:00
zhangn1985
de58ac1faa fix shell script execute after su (#1581)
`su xxx -c bash a.sh`
it will execute like `su xxx -c bash` and ignore a.sh

in order to do right way

`su xxx -c "bash a.sh"`
2019-10-01 16:53:22 +02:00
Igor Pecovnik
3a143a8dfa Docker: add command dockerpurge to recreate armbian containters 2019-09-29 16:01:07 +02:00
Igor Pecovnik
a58c8d1133 Bugfix / typo 2019-09-29 11:47:49 +02:00
zhangn1985
552f4bdb4e docker: do not always require root privileges for docker build (#1579)
due to docker can be running normal user, and inside docker can be root.

so drop root privileges for docker build.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-09-29 11:42:41 +02:00
zhangn1985
507a19ff0d git: do not update/checkout with root privileges (#1580)
* git: do not update/checkout with root privileges
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
* Add warning and rfc utils install
2019-09-29 11:41:43 +02:00
Igor Pečovnik
c87d9692e2
Tiny bugfix for starting fro m very minimal image
Check also for gnupg and install it
2019-09-28 22:19:51 +02:00
Igor Pečovnik
0941aec869
Add missing dependencies
We can't import keys without PGP suite installed. Adding. Add another check to install Docker automated only on Debian based distributions.
2019-09-28 21:00:46 +02:00
Igor Pečovnik
fa9b0f54b9
Moving configs under userpatches (#1564)
* Config files moved to userpatches.
* Automatic move config-default.conf to userpatches folder
* Move Dockerfile to config/templates which is then copied to userpatches. 
* Enable torrent dl by default
* Install docker if we want to build under Docker but its not installed

* Adjust Vagrant settings
Signed-off-by: Tian Yuanhao <tianyuanhao@aliyun.com>
2019-09-28 20:49:28 +02:00
Igor Pečovnik
f7f98eabb5
Remove deprecated check 2019-09-07 23:32:18 +02:00
Igor Pečovnik
1221d59233
Build all targets RFC (#1515)
* Introducing build-all-ng
* Implementing REBUILD_IMAGES='board1,board2,...' for rebuilding certain images only
* Add optimisations when building kernels - only cycle trough needed targets. Adding variable for defining whether an image is build, otherwise only BSP is made.
* repository manipulating RFC
* Add bianco deb file that is added by default if repository is clean
* Switch to gpg2 signing method, small bugfix
* Create subdir for debs and debs-beta
* Synaptic bugfix: installing indexing tools https://forum.armbian.com/topic/8021-orange-pi-one-synaptic-package-manager-search-very-slow/?do=findComment&comment=74918
* add all modules by default to Odroid N2, but leave them commented
* Bugfix: not making any builds when selecting kernel_only
* Remove EXTERNAL=yes ... move armbian-config and armbian-firmware into main compilation area, drop others since they are deprecated anyway. This will also enable multi threaded images making
* Move armbian.list to create_sources_list function. Replace NTP by Chrony. Remove armbian-firmware from PACKAGE_LIST and RockPi 4A (#1528)
* Replace NTP by chrony. Remove installion of outdated armbian-firmware from reposity.
* added RockPi 4A
* New format for board config
* Fix Bluetooth dependencies for minimal package - add rfkill to family related installs
* Moving networkd-dispatcher from minimal image
* Cubox-i: update default config
* Improving umount process
* Add purgesource feature
* Add FULL_DESKTOP to install few more applications on top of our desktop - notebooks should * rk3399 default: adjust patches and configuration
* Enable full desktop on most powerfull boards and notebooks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 22:13:13 +02:00
Przemysław Sztoch
bc0fbb85bc Add USERPATCHES_PATH optional setting to config file. (#1450)
Required if userpatches folder is conflicted between two different configs.
This is frequent and requires maintaining two copies of the builder.
2019-07-09 22:50:49 -04:00
Przemysław Sztoch
31b56af49f Default config as symlink and better kernel package metadata (#1446)
* Default config as symlink for comfort switching between several custom boards.

* Better metadata for kernel packages.

* Local changes with detailed git diff.

* Support for gz and bz2 compression (supported by balenaEtcher).
Support for generation sha without 7z compression.
Bug fix for current directory changing in 7z compression.

* Remove bzip2 and use fast pigz for gziping.

* Deleted typo with "gz" in 7z section.
Separated parameter for gpg.

* Information about exit command.
2019-07-06 22:35:42 +02:00
Manuel Rüger
bffdfcd7f0 Apply shellcheck recommendations (#1389)
* compile.sh: Apply shellcheck recommendations

* lib/upgrade.sh: Apply shellcheck recommendations

* lib/main.sh: Apply shellcheck recommendations

* lib/desktop.sh: Apply shellcheck recommendations

* lib/makeboarddeb.sh: Apply shellcheck recommendations
2019-05-30 22:19:53 +02:00
Stefan Mavrodiev
b7e8dd3d4d Fix argument parsing 2018-12-19 09:53:11 +02:00
zador-blood-stained
a407e988c8 Add a missing bit to d1a9c8a 2018-05-24 22:33:16 +03:00
ThomasKaiser
2f3fd75544 Fix 'whitespace in path' fix 2017-09-14 03:13:26 -07:00
ThomasKaiser
6178cca694 Immediately exit compile.sh if whitespace in path is detected. #762 2017-09-13 12:59:03 +02:00
zador-blood-stained
c3567743a0 Small cleanup 2017-08-06 17:11:16 +03:00
Igor Pecovnik
a9b4e9a9a4 Properly solved handling subrevisions 2017-08-02 23:51:43 +02:00
Igor Pecovnik
2e7987c953 Bugfix 2017-08-02 20:49:16 +02:00
Igor Pecovnik
a1154106c1 Allow overriding SUBREVISION in config 2017-08-02 19:30:37 +02:00
Igor Pecovnik
d94b39194c Add subrevision if BETA="yes" for daily builds 2017-08-02 07:57:51 +02:00
zador-blood-stained
ab7a73be31 Small cleanup 2017-08-01 15:31:54 +03:00
zador-blood-stained
a190eebf43 Update the build script github repo address
Remove shebangs from non-executable files
2017-08-01 12:51:10 +03:00
zador-blood-stained
cb77343979 Add migration checks and messages 2017-08-01 12:28:19 +03:00
zador-blood-stained
91be332f8a Refactor directory structure
Remove "parent of the project directory" setup
Closes #633
Closes #674
2017-08-01 12:24:56 +03:00
zador-blood-stained
585614d5b3 Change default build script options
Use PROGRESS_DISPLAY=plain by default
Remove (hide) internally used options
Add dialog for KERNEL_CONFIGURE option
2017-07-09 21:28:07 +03:00
Igor Pecovnik
feebf0cfd3 Typo 2017-06-17 21:35:45 +02:00
Igor Pecovnik
f4265dc6b4 New switch - freeze armbian packages (u-boot, kernel, dtb) 2017-06-17 21:34:03 +02:00
zador-blood-stained
9b232d73ba Implement old rootfs cache files clean up option 2017-01-21 16:02:22 +03:00
zador-blood-stained
612e134e4f Differentiate between stable and nightly images 2017-01-04 16:53:18 +03:00
Igor Pecovnik
f0d2425929 Beta builds are now defined in board configuration - will be live and updated after few test runs. There was also few fixes for parallel building. 2016-12-12 19:38:55 +01:00
Igor Pecovnik
6ec8ab2269 If compile.sh is changed we need to bump number 2016-09-17 19:55:04 +02:00
Vincent Legoll
85e75b68cb Rename DEBUG_MODE to CREATE_PATCHES
As proposed on the forum:
http://forum.armbian.com/index.php/topic/1660-420-build-tools-testing-for-improvements-andor-documentation/#entry15104

Signed-off-by: Vincent Legoll <vincent.legoll@idgrilles.fr>
2016-09-17 19:50:13 +02:00
zador-blood-stained
62b5697847 Update GLshim patch
Update patching process verbosity
Enable installing additional packages by default
2016-09-03 16:42:03 +03:00
zador-blood-stained
361bb4bde5 Fix exit code for compile.sh 2016-07-27 21:10:33 +03:00
zador-blood-stained
c900b5c930 Add CLEAN_LEVEL=extra 2016-07-27 16:29:07 +03:00
zador-blood-stained
70c6ca547b Add post-build hook to compile.sh 2016-07-27 13:43:05 +03:00
zador-blood-stained
c7b49e6667 Update compile.sh 2016-07-27 13:37:23 +03:00
Igor Pecovnik
e32e1f55dd Introducing new feature, defined as "DEBUG_MODE" for easier source debugging. You can create changes on the top of all our patches and patch, placed into sub dir userpatches, will be produced automatically 2016-06-13 21:02:39 +02:00
zador-blood-stained
a784c535c7 Enable audio for lime-a10 legacy 2016-05-06 13:42:43 +03:00
zador-blood-stained
aa8268256d Update project README
Update compile.sh to use dialog for KERNEL_ONLY
Update configuration.sh
2016-04-19 13:27:35 +03:00
Igor Pecovnik
26cfa8b20d rewerting part of previous commit 2016-04-18 22:14:07 +02:00
Igor Pecovnik
2697f999c4 Board config rework, more precise target defining for automated build process, build kernel only removed from switch, so it prompts by default 2016-04-18 22:10:31 +02:00
Igor Pecovnik
76bc57a5d6 realpath not installed by default, at least not on Trusty. 2016-04-16 21:12:24 +02:00
zador-blood-stained
27339983b5 Rework build-all.sh to use board configuration files 2016-04-16 21:42:53 +03:00
zador-blood-stained
fcacbaf974 Rework external applications into plugins 2016-04-08 16:49:04 +03:00
Rabouin Geoffroy
aa5360581c typo 2016-04-05 11:27:41 +02:00