Commit Graph

107 Commits (576621f1e353339fe81ece6cff7e8bcd12cbc7b8)

Author SHA1 Message Date
Felix Fietkau 576621f1e3 linux: add support of Synopsys ARC770-based boards
This patch introduces support of new boards with ARC cores.

 [1] Synopsys SDP board
     This is a new-generation development board from Synopsys that
     consists of base-board and CPU tile-board (which might have a real
     ASIC or FPGA with CPU image).
     It sports a lot of DesignWare peripherals like GMAC, USB, SPI, I2C
     etc and is intended to be used for early development of ARC-based
     products.

 [2] nSIM
     This is a virtual board implemented in Synopsys proprietary
     software simulator (even though available for free for open source
     community). This board has only serial port as a peripheral and so
     it is meant to be used for runtime testing which is especially
     useful during bring-up of new tools and platforms.
     What's also important ARC cores are very configurable so there're
     many variations of options like cache sizes, their line lengths,
     additional hardware blocks like multipliers, dividers etc. And this
     board could be used to make sure built software still runs on
     different HW configurations.

Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

SVN-Revision: 47589
9 years ago
Felix Fietkau 120a88b9da include/kernel.mk - better search for ARCH
If "findstring" is used without leading and trailing spaces unexpected matches
may happen. For example consider ARC=arc then "findstring $(ARCH)" will
report a false match with "aarch64".

But "findstring $ARCH " (note trailing space) will correctly skip
matches for both "aarch64" and "aarch64_be".

This patch is built-tested against NetGear WNDR3800.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47359
9 years ago
Jonas Gorski a6b2271f5d kernel: assume modules.builtin is always present
We do not support old kernel versions not generating modules.builtin
anymore, so assume it will always be present and check for modules
to be built in first.

This prevents old modules being packages up after changing the kernel
config to include them in the kernel without cleaning the kernel tree.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46182
9 years ago
John Crispin bbad3f360e modules: fix postinst generation for kernel modules
Fixes ticket #19352.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45367
9 years ago
Nicolas Thill 5b1d880949 include/kernel.mk: add KernelPackage/conffiles macro
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 45245
9 years ago
Felix Fietkau ed1e783aa1 kernel: only run kernel module list through version filter where version specific items are present - cuts package/kernel/linux/compile time in half
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45131
9 years ago
Luka Perkov 7002f6326e include: remove trailing whitespaces
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45127
9 years ago
Michael Büsch 921bc1cc54 Fix download URL of the 4.x kernel.
SVN-Revision: 44589
9 years ago
Jo-Philipp Wich f942a9b82a include: apply version filter on AutoLoad and AutoProbe arguments
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44228
9 years ago
Jo-Philipp Wich cb846dae0c include: apply version filter on kmod file list
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44190
9 years ago
Felix Fietkau 47e651e2eb kernel: drop obsolete kernel version checks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44113
9 years ago
Felix Fietkau 256d49be3c kernel.mk: Handle the x86_64 LINUX_KARCH case
x64 is handled by the x86 architecture in Linux, add a case for it in
LINUX_KARCH.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

SVN-Revision: 43672
10 years ago
Felix Fietkau fb5e8d203b kernel.mk: Refactor LINUX_KARCH affectation
Switch to a dumber implementation that will be easier to maintain in the long
run, with only if statements instead of having nested subst calls.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

SVN-Revision: 43671
10 years ago
Jonas Gorski e0342d2684 sdk: don't try to build in-kernel kmods
We don't ship the kernel sources, so using the base git as a feed will
fail when trying to build kernel modules with separate install steps.
Instead of trying to fixup the install steps, let's just skip building
kernel modules alltogether and just create empty packages.

Out-of-kernel modules are still expected to exist and are packaged, as
for these sources are fetched during the normal build steps.

Reported-by: Jo-Philipp Wich <jow@openwrt.org>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 43525
10 years ago
Florian Fainelli dd8d7188ee aarch64: add initial support
Add initial support for the AArch64 architecture

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 43353
10 years ago
Felix Fietkau ab92a23394 build: allow AutoLoad and AutoProbe to specify modules not included in the package
On out-of-tree modules depending on other out-of-tree modules from a
different tree, module dependencies are not filled properly.
This change helps with adding those dependencies in the AutoLoad call

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

SVN-Revision: 43323
10 years ago
John Crispin 4b47d5b732 kernel: remove debug code from module insert script
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38340
11 years ago
John Crispin 022cadd64e include: add AutoProbe support
This is needed to make modprobe work

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38020
11 years ago
Jo-Philipp Wich 6a559ff95e include: modify kernel.mk to build empty kmod packages if the referenced symbols do not exist in the config
SVN-Revision: 37400
11 years ago
John Crispin 43a3d87b83 package: fix insmod on install
the procd changes broke the postinst insmod.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37015
11 years ago
Jonas Gorski 88ff7e3f23 include/kernel.mk: print warnings/errors to stderr
Makes warnings/errors visible when building with V=w/V=1.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 35713
11 years ago
Felix Fietkau 76f0fd210f kernel: fix module packages postinst by pointing to the new functions.sh location
SVN-Revision: 34804
12 years ago
John Crispin e9c0b95829 fixes uapi helper define
SVN-Revision: 34715
12 years ago
John Crispin 0803171cd1 adds wrapper for uapi directory
SVN-Revision: 34683
12 years ago
Felix Fietkau 720ccbd95d kernel: move KERNEL_BUILD_DIR under BUILD_DIR to properly fix gcc/libc based dependencies
SVN-Revision: 34450
12 years ago
Jo-Philipp Wich 9079032833 include: use $(DIR_SUFFIX) in $(KERNEL_BUILD_DIR) to separate build_dir/linux-* directories when building different libc implementations in the same buildroot
SVN-Revision: 34299
12 years ago
Imre Kaloz 0fa21ec3eb use xz compressed kernel tarballs
SVN-Revision: 34228
12 years ago
Imre Kaloz 996f48b4a3 we only support v3.x kernels
SVN-Revision: 34225
12 years ago
Jo-Philipp Wich 97af76a920 include: calculate md5sum over sorted kernel config symbol list and incorperate it into the kernel metapackage version, make kmods depend on this specific version. The aim of this change is to invalidate kmods which are built against a different kernel config on the opkg metadata level. Manual copying and insmod of custom *.ko files, e.g. for development purpose, is still possible.
SVN-Revision: 29686
12 years ago
Jonas Gorski 14482ced5e include/kernel.mk: don't check for modules.builtin on 2.6.32-
modules.builtin is only available in 2.6.33 and later, so fall back to
assuming it's built-in for older kernels.

SVN-Revision: 29018
13 years ago
Nicolas Thill 7de2766a02 include/kernel.mk: enhance built-in/missing modules detection when packaging kmods
SVN-Revision: 28856
13 years ago
Nicolas Thill 3bcb16b305 package/blockmount: simplify extroot module loading logic
SVN-Revision: 28650
13 years ago
Nicolas Thill b5af64c529 kernel: build kmod even for modules built-in
SVN-Revision: 28649
13 years ago
Michael Büsch 69853cc4e8 Fix kernel version check macro typo
SVN-Revision: 28627
13 years ago
Jo-Philipp Wich b292524c13 kernel.mk: also do not download Linux if CONFIG_KERNEL_GIT_CLONE_URI is set
SVN-Revision: 28360
13 years ago
Jonas Gorski a5f2fd6359 include/kernel.mk: fix download path for linux 3.x
SVN-Revision: 27939
13 years ago
Felix Fietkau 5820306407 only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains
SVN-Revision: 27771
13 years ago
Jonas Gorski b197196bc8 kernel.mk: Fix kernel module path for 3.0
Linux 3.0 calls itself 3.0.0, so insmod expects the modules in
/lib/modules/3.0.0.

SVN-Revision: 27761
13 years ago
Felix Fietkau 9acb81d9af kernel.mk: add a new helper for comparing kernel versions, which can take 1 - 4 field kernel versions
implement CompareKernelPatchVer using this new helper
implement kernel_patchver_{gt,ge,eq,le,lt}, which are more convenient for use with inline $(if)

SVN-Revision: 27087
13 years ago
Felix Fietkau 0cf265ed06 remove kernel major version specific kernelpackage overrides
SVN-Revision: 27032
13 years ago
Florian Fainelli 8a6ee777b0 make ModuleAutoLoad more readable
When doing a build with tracing on, the expansion of ModuleAutoLoad can get a
little hairy.

Using intermediate variables to name the arguments makes tracing more readable.

One side effect is that if an argument is accidentally left out, we won't get
all of the parameters shifted one over thanks to quoting (done in AutoLoad).

Signed-of-by: Philip Prindeville <philipp@redfish-solutions.com>

SVN-Revision: 23513
14 years ago
Felix Fietkau a9136c0892 speed up the build system by including include/shell.sh on shell commands only where necessary
SVN-Revision: 22720
14 years ago
Nicolas Thill 5cc5f15047 partially revert [22145], keep LINUX_KMOD_SUFFIX, needed to build external modules in ./packages
SVN-Revision: 22146
14 years ago
Claudio Mignanti 2d86ea7bf3 massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950
SVN-Revision: 22145
14 years ago
Felix Fietkau 965f770083 prevent kernel.mk from defining PATCH_DIR and FILES_DIR for regular packages
SVN-Revision: 20569
14 years ago
Felix Fietkau 93489b721e add support for marking specific kernel module packages as potentially being required for mounting the rootfs (patch by cshore)
SVN-Revision: 19878
14 years ago
Felix Fietkau 3c74d0b385 do not download kernel sources when using an external kernel tree
SVN-Revision: 18777
15 years ago
Felix Fietkau cba2a6b1fd fix one more instance of r18295
SVN-Revision: 18301
15 years ago
Felix Fietkau 7a75347b26 fix platform specific overrides for kernel modules, fixes lp on brcm-2.4
SVN-Revision: 18295
15 years ago
Felix Fietkau 3b61c2c2b1 now that $(BOARD) is part of the opkg ARCH, there's no reason to keep the board name around in kmod-* package versions anymore
SVN-Revision: 17528
15 years ago