The NetBSD Project

CVS log for src/share/mk/bsd.kmodule.mk

[BACK] Up to [cvs.NetBSD.org] / src / share / mk

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 13 02:31:24 2014 UTC (5 weeks, 4 days ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.51: +15 -14 lines
Diff to previous 1.51 (colored)

do the dependencies in a simpler way using a separate target

Revision 1.51 / (download) - annotate - [select for diffs], Thu Nov 13 01:09:59 2014 UTC (5 weeks, 4 days ago) by uebayasi
Branch: MAIN
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored)

If mkldscript.sh is used to build ${PROG}, depend on it.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 12 19:33:32 2014 UTC (5 weeks, 4 days ago) by christos
Branch: MAIN
Changes since 1.49: +6 -4 lines
Diff to previous 1.49 (colored)

sync both instances of the ldscript.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Nov 12 13:24:34 2014 UTC (5 weeks, 4 days ago) by christos
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

add -t to mkldscript

Revision 1.48 / (download) - annotate - [select for diffs], Wed Nov 12 02:50:01 2014 UTC (5 weeks, 5 days ago) by christos
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

use ${HOST_SH}

Revision 1.47 / (download) - annotate - [select for diffs], Wed Nov 12 02:19:28 2014 UTC (5 weeks, 5 days ago) by christos
Branch: MAIN
Changes since 1.46: +20 -3 lines
Diff to previous 1.46 (colored)

Enable dynamic link script generation to handle __{start,stop}_link_set_*
via a variable; perhaps delete the variable and always do it?

Revision 1.46 / (download) - annotate - [select for diffs], Thu Nov 6 12:05:44 2014 UTC (6 weeks, 3 days ago) by uebayasi
Branch: MAIN
Changes since 1.45: +8 -3 lines
Diff to previous 1.45 (colored)

Leave .map when linking .kmod.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Sep 19 17:45:42 2014 UTC (3 months ago) by matt
Branch: MAIN
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

Add RISCV-V support.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Aug 10 17:44:26 2014 UTC (4 months, 1 week ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base, netbsd-7
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Put GCC/GAS specific options under ACTIVE_CC == "gcc".

Revision 1.43 / (download) - annotate - [select for diffs], Mon Mar 10 12:13:14 2014 UTC (9 months, 1 week ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

-mcmodel option is CPU specific not machine specific.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Feb 21 20:44:03 2014 UTC (9 months, 4 weeks ago) by joerg
Branch: MAIN
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

Use small code model for LLVM on SPARC64, it should be equivalent to
GCC's medlow.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Nov 9 22:40:15 2013 UTC (13 months, 1 week ago) by jmcneill
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

use -fno-unwind-tables when building arm modules

Revision 1.40 / (download) - annotate - [select for diffs], Wed Sep 18 09:25:20 2013 UTC (15 months ago) by martin
Branch: MAIN
Changes since 1.39: +6 -1 lines
Diff to previous 1.39 (colored)

When compiling kernel modules on sparc64 force the same memory model as
we force for the kernel (i.e. do not rely on compiler defaults here)

Revision 1.39 / (download) - annotate - [select for diffs], Wed Aug 7 17:36:11 2013 UTC (16 months, 2 weeks ago) by matt
Branch: MAIN
Changes since 1.38: +37 -2 lines
Diff to previous 1.38 (colored)

Add support for generating tramponlines in the module at link time.
This is done using some awk scripts and KMODTRAMPOLINE in <machine/asm.h>
It's not as efficient as having the kloader do it but it is a lot simpler.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 6 06:08:39 2013 UTC (16 months, 2 weeks ago) by skrll
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

Add -mlong-calls to hppa module builds.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Aug 10 16:34:23 2012 UTC (2 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.36: +1 -3 lines
Diff to previous 1.36 (colored)

Remove effectively tautological condition.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 15 02:00:52 2012 UTC (2 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Decouple HAVE_LLVM from HAVE_GCC. For GCC, add -Wno-format-zero-length
when -Wformat is used.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Feb 19 23:19:37 2012 UTC (2 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.34: +30 -2 lines
Diff to previous 1.34 (colored)

Add support for --combine with gcc.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 16 23:58:15 2012 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

use osrelease -k to avoid that the path is 6.0_BETA

Revision 1.33 / (download) - annotate - [select for diffs], Sun Sep 11 18:38:03 2011 UTC (3 years, 3 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Move SYSCTL_USE_DESCR to a better place.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Sep 10 16:57:35 2011 UTC (3 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.31: +3 -5 lines
Diff to previous 1.31 (colored)

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 14 18:12:35 2011 UTC (3 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

VAX kernel modules need to be built with -fno-pic

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jun 20 07:44:00 2011 UTC (3 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

remove most of the remaining HAVE_GCC tests that are always true in
the modern world.

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 17 01:12:34 2011 UTC (3 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Enable c99 mode by default.

This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 17 09:47:40 2011 UTC (3 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.27: +29 -5 lines
Diff to previous 1.27 (colored)

prepare for evbppc modules, and allow overriding the ${MACHINE} for
installed modules.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 2 19:24:47 2011 UTC (3 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Kernels modules are c99 (gnu99) just like the kernel.
Add(move) -std=gnu99 to CPPFLAGS (from COPTS).

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 11 18:42:33 2010 UTC (4 years ago) by martin
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Revert last, gcc(1) checks explicitly for -r on some platforms to disable
passing down --relax as well.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Dec 8 02:04:13 2010 UTC (4 years ago) by joerg
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

gcc passes down -r directly to ld, so make it explicitly a linker option.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 18 23:39:07 2010 UTC (4 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.23: +13 -1 lines
Diff to previous 1.23 (colored)

Generate long calls in modules for arm32 and powerpc to avoid unsupported
relocations by the module loader in the kernel.  This makes modules work
in, at least, shark and macppc respectively.

This is obviously a workaround that results in slower code, but at least
makes modules work.  I'm adding a comment detailing what the real solution
would be so that the whole thing can be revisited in the future.  (Read:
I don't have time now to dig the details of how to implement trampoline
generation.)

(Based on the old bsd.kmod.mk file, I understand that hppa needs this
workaround too, but I can't check this platform.)

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 14 08:51:16 2009 UTC (5 years ago) by mrg
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

use "${CC} -r" not "${CC} -Wl,-r" as the latter fools GCC on some targets
and it ends up passing "-r -relax" to ld, which causes ld to barf.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 14 01:00:46 2009 UTC (5 years ago) by matt
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Merge from matt-nb5-mips64

Revision 1.21 / (download) - annotate - [select for diffs], Tue Nov 10 14:47:52 2009 UTC (5 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Move the kmodule linker script source into sys/modules/xldscripts. It is
not part of binutils and definitely not GPL v3.

Discussed with mrg.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 8 22:27:09 2009 UTC (5 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Update for new binutils location.

XXX Why is kmodule under binutils anyway?

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 10 16:16:12 2009 UTC (5 years, 8 months ago) by apb
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored)

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 24 22:14:45 2009 UTC (5 years, 10 months ago) by rmind
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

Revert path of modules back to "/stand".

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jan 24 00:29:13 2009 UTC (5 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

Change path to kernel modules from "/stand" to "/kernel".
Needs to go in before 5.0.  Proposed on <tech-kern>.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Nov 30 22:05:56 2008 UTC (6 years ago) by hubertf
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Work around a bug in Solaris' shs (both /bin and /usr/xpg4/bin)
where "for d in ; ..." results in a syntax error.

Suggested by apb@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 12 12:35:54 2008 UTC (6 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 5 00:54:25 2008 UTC (6 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.13: +4 -1 lines
Diff to previous 1.13 (colored)

Don't build kernel modules with PIE.

Discussed with and okay christos@.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 14 18:31:42 2008 UTC (6 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

find the kmodule ldscript in the source tree again.

should fix a build issue reported by jmcneill.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Oct 12 23:00:54 2008 UTC (6 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

- install ldscripts on sparc64
- move ldscripts to /usr/libdata/ldscripts

Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 24 06:27:00 2008 UTC (6 years, 3 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, mjf-devfs2-base
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Honour HAVE_PCC

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 31 19:58:35 2008 UTC (6 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: mjf-devfs2
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Fix two bugs to make MKMODULAR=yes builds will work again, for the
first time.

share/mk/bsd.kmodule.mk: only set _INST_DIRS if KMODULEDIR is not
    set.  That we we avoid installing some bogus directories in
    the DESTDIR and in $DESTDIR/METALOG.

tests/modules/k_helper/Makefile: add missing .include <bsd.own.mk>,
    and set the KMODULEDIR that the author seems to have intended.

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 21 19:56:30 2008 UTC (6 years, 7 months ago) by he
Branch: MAIN
Changes since 1.8: +8 -1 lines
Diff to previous 1.8 (colored)

Do ${INSTALL_DIR} on all the intermediate directory levels from
the top of the tree down to where the kernel modules are installed,
so that unprivileged builds have a chance at working again.

Note, to use this fix in a tree where you've already hit on this
problem, you need to manually remove the kernel modules in
$DESTDIR/stand/<arch/, and then reinstall them from sys/modules/.

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 21 03:48:42 2008 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

Don't echo 'hello sh' when installing modules :-)

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 20 19:01:11 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.6: +14 -5 lines
Diff to previous 1.6 (colored)

Install kernel modules into the proper locations, taking machine and
kernel version into account.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 20 12:18:45 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

fno-zero-initialized-in-bss no longer required.

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 20 12:17:49 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.4: +3 -4 lines
Diff to previous 1.4 (colored)

Use an ldscript to merge kernel modules' .bss sections into .data. Passing
-fno-common -fno-zero-initialized-in-bss to gcc does not work, and objcopy
refuses to expand the bss section.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 20 12:08:05 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.3: +1 -50 lines
Diff to previous 1.3 (colored)

Kill the tramp stuff, since it can be handled with lkm_map.

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 3 15:48:15 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-pf42-base
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Pass -d to the linker, to assign space to common objects up front. The kernel
linker isn't smart enough to do that...

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 2 23:12:01 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored)

Build and install modules into /kernel/modules. Each module gets a
directory for properties, blobs, etc. It's not fixed in stone and
can easily be changed if there are issues with the location/layout.

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 2 14:20:50 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN

- Add a bsd.kmodule.mk to build new style modules.
- Set the file suffix to .kmod

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>