Commit Graph

75 Commits (0f1ae840c9c4a556e24709d5573ca7bdb8fc75ec)

Author SHA1 Message Date
Felix Fietkau d4abe72cce target/sdk: update README.SDK to explain dependency handling
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 847cb10f47 target/sdk: ship toolchain and kernel module package
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 12703d5b29 sdk: provide a config symbol for detecting builds within the SDK
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Daniel Dickinson 3c6b091b65 sdk: Allow to configure signed pacakge lists
Add option to enable signing packages lists in SDK.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years ago
Daniel Dickinson 9da1bf58b6 sdk: Fix keeping unset as unset
The configuration preservation mechanism fails to keep items was are unset
as unset.  For busybox this causes issues when building with custom
settings in the SDK.  Therefore preserve busybox unset settings.
In addition we preserve non-package selection unset settings because
they may be important for making sure we compile and identical
package for packages that are recompiled in the SDK.

Now that SDK not longer ships .config this becomes relevant for
any use of the SDK.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years ago
Alexander Couzens 2e980479c1 IB/SDK/toolchain: use lower cases filenames
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Alexander Couzens 4a7c653400 IB/SDK/toolchain: use VERSION_DIST_SANITIZED instead of VERSION_DIST
VERSION_DIST can contains spaces which produces problems when used as file name

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Jo-Philipp Wich 4ed8e57fd9 sdk: remove redundant symbol declaration
Commit d79f8909c1 introduced CONFIG_ALL,
CONFIG_ALL_KMODS and CONFIG_ALL_NONSHARED as menuconfig choices to the SDK,
therefor we can drop the hardcoded CONFIG_ALL symbol declaration now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 9eeb267c06 sdk: stop shipping a .config
Now that the most important options are exposed via menuconfig in the SDK we
can stop shipping a (possibly outdated) copy of .config from the emitting
buildroot.

Leaving out .config has two positive side effects:

 - A simple "make" run without any prior config will launch menuconfig, forcing
   interactive users to make appropriate choices

 - Buildbot systems (e.g. our phase2 builder) can issue a "make defconfig" to
   obtain a .config enabling all packages by default

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Daniel Dickinson d79f8909c1 sdk: Allow to change ALL* package settings in SDK
It is desirable to be able to use ./scripts/feeds install -a
when in the SDK without being forced to build a great number
of packages that are not actually wanted.

We therefore add the option of changing the various ALL package
build options so that we can default to packages not being built
unless we select them.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years ago
Alexander Couzens 173ac3b7cb sdk: rename OpenWrt into LEDE
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Jo-Philipp Wich 484cb91ad5 sdk: bundle required firmware files
Bundle all firmware files which have been built along with the kernel to fix
packaging of kmods in the SDK environment that rely on in-tree firmwares,
specifically kmod-e100.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich f8ce7e028d sdk: do not exclude ccache executable
Change tar exclude pattern to skip ccache directory contents but not the
ccache executable itself.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 0f6f518e7a sdk: fix generation of base feed url
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 2224dbdb9d sdk: add base repository fallback
When the build system cannot infer its own repository url then let it fall
back to http://git.openwrt.org/ for the base feed.

The path to openwrt.git is guessed from the VERSION_NUMBER variable:

 "unknown" or "r12345" -> http://git.openwrt.org/openwrt.git
 "15.05.1"             -> http://git.openwrt.org/15.05/openwrt.git

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48212
9 years ago
Felix Fietkau 6318ff744d target/sdk: include modules.builtin, it is necessary for packaging kernel modules
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48206
9 years ago
Felix Fietkau 7dfbac8073 target/sdk: do not include the target staging dir anymore, it is unnecessary now
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48157
9 years ago
Felix Fietkau 4a7340d8c6 target/sdk: ship .ko files to allow rebuild of the base kmod-* packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48156
9 years ago
Felix Fietkau def6be413c target/sdk: Fix filename with external toolchain
When building SDK with external toolchain, don't
include _gcc in the filename

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>

SVN-Revision: 48084
9 years ago
Felix Fietkau d69efa4e15 targets: Use configured distribution name for SDK, IB, and Toolchain tarball names
We allow to configure the version distribution name;
let's also use it for the tarballs (SDK, ImageBuilder,
and SDK).

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>

SVN-Revision: 48081
9 years ago
Jo-Philipp Wich 81a35d669a sdk: provide explicit CONFIG_MODULES kconfig symbol
Extend the SDK Config.in file to explicitely declare a MODULES symbol with
the "option modules" flag set in order to prevent a kconfig segmentation fault
whenever a "depends m" dependency is encountered.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 46514
9 years ago
Felix Fietkau d2e02d6377 sdk: filter out CONFIG_SIGNED_PACKAGES for generated config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45581
9 years ago
Jo-Philipp Wich 49fda5e4d9 sdk: use prepare target to initialize git snapshot
The new approach is less prone to race conditions and will properly
snapshot the symlinks prepared by the prereq-build target.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44330
9 years ago
Jo-Philipp Wich f52a62d600 sdk: rename file to mention target/subtarget and move host system to suffix
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44312
10 years ago
Jo-Philipp Wich 4685e4f273 sdk: track files with git and use it to implement proper clean targets
Initialize a Git repository in the SDK and use git reset / git clean
to rollback any SDK changes with "make clean" or "make dirclean".

This approach is more robust than nuking entire directory trees because
some parts of them might have been shipped with the original archive.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 43904
10 years ago
Jo-Philipp Wich 15d8db1f8c build: add version number to filenames
This commit introduces a new option CONFIG_VERSION_FILENAMES which causes
OpenWrt to embed the version number in generated image files, SDK- and
ImageBuilder archives.

The option is enabled by default if CONFIG_VERSIONOPT is set.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 43869
10 years ago
Felix Fietkau db9f9a6407 sdk: add missing kernel include files
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43621
10 years ago
Jo-Philipp Wich cc97eaff10 sdk: improve feed setup
- Add current buildroot scm url as base feed to feeds.conf
 - Prefer feeds.conf over feeds.conf.default when generating the SDK feeds.conf.default

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42935
10 years ago
Jo-Philipp Wich 057e518224 sdk: predefine kernel version magic
Kernel modules which are built using the SDK do not have access
to the .vermagic file in the Linux build dir, therefore the
generated .ipk metadata depends on kernel versions like
'3.10.49-1-unknown' which are not satisfiable by the kernel
meta package in the image.

Fix this problem by substituting 'unknown' with the current
version magic in include/kernel.mk when packing the SDK.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42590
10 years ago
Felix Fietkau 734f7609b9 sdk: keep $(STAGING_DIR)/usr/bin, at least curl needs it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42397
10 years ago
Felix Fietkau 2a5f6cadd1 target/sdk: strip host binaries before packing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39915
10 years ago
Felix Fietkau 8c9fed34e4 target/sdk: leave out some unnecessary directories
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39914
10 years ago
Felix Fietkau ee4110aff0 target/sdk: use .config instead of unconditionally enabling all build dirs
Call make defconfig on every build to catch newly added packages

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39913
10 years ago
Felix Fietkau fd27fb770d target/sdk: fix parallel build calls
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39912
10 years ago
Felix Fietkau 2d52430c25 target/sdk: remove obsolete make calls for the ancient package directory format
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39911
10 years ago
Felix Fietkau cedfe135ab target/sdk: generate a Config.in file with the settings of the build that the SDK was generated from
This allows make oldconfig/menuconfig to run

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39864
10 years ago
Felix Fietkau 23df56c490 target/sdk: remove obsolete compatibility makefiles
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39863
10 years ago
Felix Fietkau 5ef90f6540 target/sdk: remove obsolete exclude line
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39861
10 years ago
Felix Fietkau d76f2d4d1c target/sdk: remove some unnecessary files
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39859
10 years ago
Felix Fietkau ba3b720fe6 target/sdk: add support for building kernel module packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39858
10 years ago
Felix Fietkau 96bb7c123b build: consistently use 'depends on' instead of 'depends'
make the syntax more compatible with kernel menuconfig

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36351
11 years ago
Daniel Dickinson 7e0f8049fa Fix feeds.conf.default when no SVN info present
SVN-Revision: 34051
12 years ago
John Crispin 3686b8d279 derive system from hostcc to allow building inside a chroot
SVN-Revision: 33228
12 years ago
Jo-Philipp Wich 93b8648b15 don't overwrite version.mk, substitute REVISION instead
SVN-Revision: 31271
12 years ago
Jo-Philipp Wich cb6f860b8f make sure .config gets copied as file When using scripts/env, .config is most likely a symbolic link pointing to env/.config. Previously the symbolic link got copied as-is into the SDK tarball, leading to a dangling .config symlink on the target system which prevented the SDK from working.
SVN-Revision: 29927
13 years ago
Jo-Philipp Wich 34f2cfc657 fix generation for arm platforms Based on patch by Roman Yeryomin <roman@advem.lv>
SVN-Revision: 28225
13 years ago
Felix Fietkau b3d364b922 sdk: fix up paths for $(ARCH_SUFFIX)
SVN-Revision: 20254
14 years ago
Nicolas Thill ac695f35fa disable IB & SDK when using an external toolchain (closes: #6001)
SVN-Revision: 18837
15 years ago
Florian Fainelli 40d5dafdd2 do not exclude the share directory for bison and other programs to work (#5629)
SVN-Revision: 17198
15 years ago
Florian Fainelli 88fd55fb5c now that we support multiple libc, include the gcc version, libc type and libc version in the SDK filename
SVN-Revision: 16508
15 years ago