Commit Graph

22 Commits

Author SHA1 Message Date
christos
aa95d973bb use arm_elf2aout 2019-01-02 17:32:25 +00:00
tsutsui
b0f0b58563 Use common ${OBJCOPY_ELF2AOUT_FLAGS}. 2011-07-10 04:37:56 +00:00
tsutsui
feddb9cce7 Sync with src/sys/arch/shark/conf/Makefile.shark.inc rev 1.14:
> also need to strip out GCC 4.5's new .debug_pubtypes section.
> while here, minor cleanup.

XXX: probably we should have something like ${ARM_AOUT_REMOVE_SECTIONS}
XXX: in bsd.own.mk
2011-07-02 17:37:28 +00:00
tsutsui
961a77cdbb Use consistent names for distribution RAMDISK kernels:
netbsd.able-INSTALL.gz -> netbsd-INSTALL.ABLE.gz
 netbsd.aout-INSTALL.gz -> netbsd-INSTALL.aout.gz

XXX: Probably it's simpler to have default ELF (currently ABLE) kernels
XXX: and optional a.out ones for old firmware as sgimips does for ecoff ones.
2010-10-04 15:56:53 +00:00
skrll
ec608b5760 Remove .ARM.attributes when converting from ELF to a.out. 2009-08-20 14:43:06 +00:00
he
28599b0f97 Mirror the changes to sys/arch/cats/conf/Makefile.cats.inc: remove
some more ELF sections when copying to a.out format: .debug_frame,
.debug_loc, .debug_pubnames, and .debug_aranges.
2008-06-09 20:05:12 +00:00
he
9df302c742 Fix another place where the newly added partial debugging symbols
need to be omitted in ELF -> a.out conversion.
2008-01-19 00:03:39 +00:00
skrll
653e86f1a5 Remove the .note.netbsd.ident section when converting the kernel to a.out. 2007-11-19 10:28:15 +00:00
chris
3d4b482c1f As requested in PR port-cats/30460 add support for GENERIC.ABLE kernel to
sysinst, and also add the ABLE install kernel to the generated release
kernels.
2005-08-07 00:21:38 +00:00
lukem
89f2e609f9 use simpler MDSET_NOSTRIP= instead of MDSET_NOSTRIP.xxxx= 2003-10-25 04:39:48 +00:00
matt
a57c218722 Need to remove .comment too. 2003-09-21 15:21:03 +00:00
skrll
c412d1def0 Don't strip the kernel before the objcopy as the result won't load with
the CATS firmware. I think this is due to a bug in bfd. We'll see.
2003-01-14 20:18:25 +00:00
thorpej
bf3979a00a Use objcopy to a.out'ify the install kernel image. 2002-11-23 16:02:55 +00:00
lukem
04e61f8526 - whitespace consistency cleanup
- build (mdset/nm/strip) into ${filename} as one rule, and move ${filename}.gz
  into separate rule
- rename MDSET.${filename}.nosymbols -> MDSET_NOSYMBOLS.${filename}
- rename MDSET.${filename}.post -> MDSET_POST.${filename}, and don't do
  suffix handling here
- rework suffix handling:
	- rename MDSET.${filename}.suffixes -> MDSET_SUFFIXES.${filename},
	  and change from list of suffixes to list of "suffix cmdtobuildsuffix",
  	  where cmdtobuildsuffix is the name of the variable containing the
	  command to build ${filename}.${suffix} (available as "${.TARGET}").
	- for each ${filename}.${suffix}, depend upon ${filename} and use
	  ${cmdtobuildsuffix} to create the former.
	- add separate ${filename}.${suffix}.gz rule
- mipsco & pmax: rename "install.gz" to "netbsd-INSTALL.gz", for
  consistency and so the target to build the mdset kernel doesn't get
  confused with general "install" target
2002-05-08 21:44:53 +00:00
lukem
d5209f6152 rather than blocking parallel mdset builds with .WAIT, replace usage of
"netbsd.tmp" with "${.TARGET:R}" (et al)
2002-05-03 15:22:55 +00:00
lukem
ed8e534c7e yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
2002-05-02 18:02:14 +00:00
lukem
9e5598221a replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version 2002-04-26 15:50:21 +00:00
lukem
36f355e14e - Rename Makefile.mdset variables:
MDEXTRA_SUFFIXES.${KERNEL} 	-> MDSET.${FILENAME}.suffixes
	${KERNEL.${_K}}.post		-> MDSET.${FILENAME}.post
  This allows "default" rules for for MDSETTARGETS with FILENAMEs of "-"
  by defined MDSET.-.post & MDSET.-.suffixes
- Document the above
- Use the above appropriately in various Makefiles
- Be a be quieter when building these kernels
- Add .WAIT syncs so that multiple kernels aren't built in parallel, because
  the temporary filename is the same, and it also avoid hairy magic in
  syncing the targets generated from MDSET.${FILENAME}.suffixes with
  the master target for that ${FILENAME}
2002-04-14 01:41:24 +00:00
lukem
0dfdd76021 Makefile.mdset:
replace
		TARGETS = KERNEL IMAGE [...]
	with
		MDTARGETS = KERNEL IMAGE FILENAME [...]
	If FILENAME is "-", use "netbsd.${KERNEL}" as the target filename

The rest:
	Update for new MDTARGETS syntax.  In some cases, the kernel
	name from the "old" method will be used to override the default.
2002-04-12 13:39:43 +00:00
lukem
627174f862 - don't pull in <bsd.prog.mk> in Makefile.mdset; do that in the caller instead
- renamed optional post-strip action variable from ${KERNEL}.post to
  netbsd.${KERNEL}.post
2002-04-12 05:33:58 +00:00
lukem
e940426c29 convert to distrib/common/Makefile.mdset 2002-04-11 22:53:02 +00:00
skrll
ac60400580 The results of my cats NWDO hacking.
This was tested using a custom INSTALL kernel. The current one is >4Mb
which the cats firmware can't currently boot. We need to decide what
needs to be removed from INSTALL.
2002-04-11 16:33:58 +00:00