summaryrefslogtreecommitdiff
path: root/diag
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: Remove one remaining instance of EFI_BUILDH. Peter Anvin2016-02-091-1/+1
| | | | | | Remove one last stray instance of EFI_BUILD. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefile: Pass down the variable EFI_BUILDSylvain Gault2015-11-271-1/+1
| | | | | | | | This variable indicates whether or nor the files are compiled for EFI. The lack of it lead the Makefiles to forget to add some compilation options specific to EFI. Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
* diag/geodsp/: Remove geodsp1s_f.img.xz image from target; CopyrightGene Cumm2015-02-224-5/+5
| | | | | | | It's relatively simple to just apply the geodsp1s_f.bin force drive 80h after applying the plain geodsp1s.img.xz Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp/Makefile: lib; _f alternateGene Cumm2015-02-161-3/+7
| | | | | | | Move library dependendcies to a variable; Add another _f (Force DL == 80h) variant. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: updateGene Cumm2015-02-163-74/+113
| | | | | | | | Print drive number at start. Print '!' before data when an error is encountered (but continue). Several macros to change codesize. Code refactoring to reduce size. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: Update README with a sampleGene Cumm2015-02-151-0/+24
| | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: mk-lba-img.pl misdirects a status messageGene Cumm2015-02-151-1/+1
| | | | | | | mk-lba-img.pl misdirects a status message about len/tail such that it hits stdout (which may be our file) instead of stderr. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: fix .img target in MakefileGene Cumm2014-01-181-1/+1
| | | | | | Accomodates the per-firmware object directory support Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: fix MakefileGene Cumm2014-01-181-3/+3
| | | | | | Correct merge f88b4f47 Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* Merge branch 'elflink' into firmwareH. Peter Anvin2014-01-171-7/+25
|\ | | | | | | | | | | | | Resolved Conflict: diag/geodsp/Makefile Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * Merge branch 'master' into elflinkelflinkH. Peter Anvin2014-01-172-10/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: NEWS core/fs/fs.c version Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| | * diag/geodsp: README fixesGene Cumm2014-01-081-7/+25
| | | | | | | | | | | | | | | | | | Should clarify the situation; also word-wrap & save example Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | * diag/geodsp: fix MakefileGene Cumm2014-01-081-3/+3
| | | | | | | | | | | | | | | | | | | | | Results in null image Reported-By: ioannis Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | Merge tag 'syslinux-5.00' into firmwaresyslinux-6.00-pre3Matt Fleming2012-12-071-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile com32/elflink/ldlinux/Makefile com32/lib/sys/module/elf_module.c core/cleanup.c core/comboot.inc core/conio.c core/fs/fs.c core/init.c core/mem/free.c core/mem/malloc.c core/timer.inc diag/geodsp/Makefile extlinux/main.c mk/embedded.mk modules/Makefile Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | Symbol export whitelistMatt Fleming2012-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before modules were dynamically loaded the boundary between GPL and non-GPL code was implicit because of the separate link domains for each module. With dynamic modules we need an explicit whitelist of core symbols that non-GPL code can link against at runtime without needing to be re-licensed under the GPL. Mark such symbols with __export, so that it is explicitly clear which symbols in the core can be linked against by non-GPL code. Reduce the visibility of symbols in both the core and ldlinux.c32 with -fvisibility=hidden. __export changes the visibility to 'default'. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | | Merge tag 'syslinux-5.00-pre9' into for-hpa/elflink/firmwareMatt Fleming2012-11-051-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This merge also includes the Syslinux-4.06 release. Conflicts: Makefile com32/hdt/Makefile com32/modules/Makefile com32/samples/hello.c mtools/Makefile
| * | diag/mbr: Fix typo in READMEMatt Fleming2012-10-231-1/+1
| |/ | | | | | | | | Reported-by: Ady <ady-sf@hotmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | Add per-firmware object directory supportMatt Fleming2012-10-163-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have multiple firmware backends it no longer makes sense to write object files to the same directory as their source. A better solution is to write the object files to a per-firmware directory under a top-level object directory. The top-level object directory can be specified on the command-line with the O= variable, e.g. make O=/tmp/obj. If no top-level object directory is specified an 'obj' directory is created in the top-level of the Syslinux source repository. All the existing make targets continue to work as before, however now they apply to all firmware backends, e.g. 'make installer' will build the BIOS, 32-bit EFI and 64-bit EFI installers and place them under $(OBJ)/bios, $(OBJ)/efi32 and $(OBJ)/efi64 respectively. Note unlike every other bit of Syslinux, the gpxe objects are still kept in the src directory, e.g. gpxe/src, since gpxe is only required by the BIOS backend. It is possible to specify a make target for a specific firmware or list of firmware with the following syntax, make [firmware[,firmware]] [target[,target]] To clean the object directory for just the BIOS firmware type, 'make bios clean' To build both the 32-bit and 64-bit EFI installers type, 'make efi32 efi64 installer' Since the Syslinux make infrastructure is now more complex a new file doc/building.txt has been created to explain how to build Syslinux. The top-level Makefile now exports some make variables for use in module Makefiles, - topdir - the top-level source directory of the Syslinux repository, e.g. /usr/src/syslinux - objdir - the top-level object directory for the firmware backend currently being built, e.g. /obj/syslinux/bios - SRC - the source directory in the Syslinux repository for the module currently being built, e.g. /usr/src/syslinux/com32/libupload - OBJ - the object directory for the module currently being built, e.g. /obj/syslinux/bios/com32/libupload Since we're rewriting the Makefile infrastructure anyway it seemed like a good idea to add parallel support. By writing subdirectories as prequisites for make targets the objects in those subdirectories can be built in parallel. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | Merge remote-tracking branch 'mfleming/elflink' into for-hpa/elflink/firmwareMatt Fleming2012-07-304-17/+114
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile com32/elflink/ldlinux/adv.c com32/elflink/ldlinux/kernel.c com32/elflink/ldlinux/ldlinux.c com32/include/bitsize/stddef.h com32/include/bitsize/stdint.h com32/include/stdint.h com32/include/sys/module.h com32/include/sys/x86_64/bitops.h com32/include/syslinux/linux.h com32/lib/Makefile com32/lib/sys/ansicon_write.c com32/lib/sys/module/elfutils.h com32/lib/sys/vesa/efi/fill.h com32/lib/syslinux/load_linux.c com32/lib/syslinux/serial.c com32/lib/syslinux/shuffle.c core/conio.c core/elflink/config.c core/elflink/load_env32.c core/graphics.c core/include/graphics.h core/init.c core/pxelinux.asm mk/elf.mk mk/lib.mk
| * diag/mbr: Clarify READMEGene Cumm2012-05-271-1/+3
| | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * Update diag/mbr instruction to match the current filename.Jean-Christian de Rivaz2012-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | I suspect that some instructions about how to use the diag/mbr was not updated when the source file was renamed to handoff.S. Here is a simple proposition to fix that only into the handoff.S file. Jean-Christian de Rivaz Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * diag/geodsp: Use perl to make the image; Fix MakefileGene Cumm2011-12-311-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | This reduces the host binary dependence and prevents the need for a rebuild of the images after a 'make clean'. This has the unfortunate side effect of going from 0.03s to 0.30s to build an image. Also fix Makefile to include (optional) raw targets and use $(GZIPPROG) Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * diag/geodsp: add mk-lba-img.plGene Cumm2011-12-311-0/+94
| | | | | | | | To be used to replace the native C binary
| * diag/geodsp: don't distribute mk-lba-imgH. Peter Anvin2011-12-051-1/+1
| | | | | | | | | | | | Do not distribute the mk-lba-img host tool binary. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * diag/geodsp/Makefile: Use make variablesGene Cumm2011-04-291-5/+7
| | | | | | | | | | | | | | Use the appropriate variables but for now the flags/options are overridden in this Makefile. Also add XZ to mk/syslinux.mk Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * diag/geodsp: Save the .bin filesGene Cumm2011-04-261-1/+1
| | | | | | | | | | | | They are a BTARGET file Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * diag/geodsp: Makefile cleanupGene Cumm2011-04-261-7/+2
| | | | | | | | Unneeded statements; delete *.lst like other Makefiles
| * diag/geodsp: Fix .img.gz prerequisiteGene Cumm2011-04-261-1/+1
| |
* | The make files have undergone changes to support both i386 and x86_64 platforms.chandramouli narayanan2012-06-251-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pertinent changes are sprinkled through *.mk and Makefile in the syslinux tree. Build architecture is specified at the command line via ARCH macro. This is to enable whether one is building for the native platform or cross-building for a different architecture. Currently, the only supported architectures via ARCH macro are i386 and x86_64. There are some modules (e.g. memdump) that don't build under the EFI environment. To go forward with efi boot support, a separate EFI_BUILD=1 macro has been added and is required to be specified while building. This is a temporary solution for the current build environment. example build: On a x86_64 platform, the following cross-builds syslinux for i386 To build for i386: make EFI_BUILD=1 ARCH=i386 On a x86_64 platform, the following builds syslinux for x86_64 To build natively: make EFI_BUILD=1 Changes specific to GCC and LD options: Architecture specific flags and include/search directories are set up for GCC and LD commands. Internally, GCC options such as stack-boundary, PIC and machine architecture are set up based on ARCH macro. While stack-boundary=2 is fine for i386, it does not work for x86_64 and so it is left to the default value. Using -fPIE with gcc does not work with ld on x86_64, but -fPIC works fine. Similarly, target and elf options are set up for linking as approrpriate for architecture. Assumption about gnu-efi install path: Since the EFI build supports both EFI32 and EFI64, the following assumptions are made with regard to the installed location of gnu-efi on the build platform. 1. gnu-efi-ia32: assumed installed in /usr/local [ EFI-32 include files in /usr/local/include/efi and gnu-efi library in /usr/local/lib/ ] 2. gnu-efi-x86_64: assumed installed in /usr [ EFI-64 include files in /usr/include/efi and gnu-efi library in /usr/lib64/ ] Remanants of the unused old i386-only files, if any, need to be pruned.
* Merge remote-tracking branch 'mfleming/for-hpa/makefile-cleanup'H. Peter Anvin2011-04-262-2/+3
|\ | | | | | | | | | | | | | | Resolved Conflicts: com32/hdt/Makefile com32/sysdump/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Makefile: Move Makefile fragments into mk/Matt Fleming2011-04-072-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the MCONFIG files into a mk/ directory and give them more descriptive names. This is purely a cosmetic change to make the 'include' directives a bit more coherent by making it obvious exactly which MCONFIG file we're including. For example, in com32/lua/src/Makefile we exchange the line, include ../../MCONFIG for the much more comprehensible, include $(MAKEDIR)/com32.mk Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
* | diag/geodsp: zero-fill sectors in -1 modeH. Peter Anvin2011-04-251-0/+2
| | | | | | | | | | | | | | In -1 mode, zero-fill the sector instead of writing whatever garbage was in the buffer already. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | diag/geodsp: fix ordering of args to fread/fwrite in mk-lba-imgH. Peter Anvin2011-04-251-3/+3
| | | | | | | | | | | | | | If we want the return value to be in bytes, make sure we pass the byte count in the nmemb field instead of the size field. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | diag/geodsp: Avoid large intermediate filesH. Peter Anvin2011-04-252-30/+41
| | | | | | | | | | | | | | | | Allow the generation program mk-lba-img to merge the prefix file and output to stdout, so it can be fed directly to the compressor; that way we avoid generating huge intermediate files on disk. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | diag: Don't remove BTARGET on make cleanH. Peter Anvin2011-04-181-1/+2
|/ | | | | | "make clean" should not remove BTARGET Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge remote-tracking branch 'genec/diag-mbr-handoff-for-hpa'syslinux-4.04-pre16H. Peter Anvin2011-04-011-3/+29
|\
| * diag/mbr/handoff: Add optional printing of floppy descriptorGene Cumm2011-03-271-0/+26
| |
| * diag/mbr/handoff: Code comments; reflow outputGene Cumm2011-03-271-4/+4
| | | | | | | | | | The printing of CR/LF was misplaced such that it'd print a blank line if no PnP data was found.
* | diag/geodsp/README: Additional use notesGene Cumm2011-03-291-0/+6
|/
* Merge branch 'master' into diag-mbr-handoff-for-hpaGene Cumm2011-03-167-1/+709
|\ | | | | | | | | | | | | Conflicts: diag/mbr/handoff.S diag/mbr/handoff.S: Remove the attempt to zero pad/prevent overflow
| * diag/geodsp/Makefile: use ./ to run a file in the current dirH. Peter Anvin2011-03-161-1/+1
| | | | | | | | | | | | When running a file in the current directory, use ./ as a prefix. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * diag/mbr/handoff.S: Fix compilation problems with gas 2.21.51H. Peter Anvin2011-03-161-2/+1
| | | | | | | | | | | | | | The construct used for zero-padding in handoff.S doesn't work with gas 2.21.51. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * diag: Add geodsp to MakefileGene Cumm2011-03-091-1/+1
| |
| * diag/geodsp: Display Geometry based on readGene Cumm2011-03-096-0/+708
| | | | | | | | | | | | This produces two images that are 8MiB+ in size (in order to exceed the size of the largest CHS cylinder) containing 1 or multiple sectors of code/data and the remaining sectors filled with their LBA.
* | diag/mbr/: use checksize.pl to pad/prevent overflowGene Cumm2011-03-162-7/+7
|/ | | | HPA noticed that using Fedora 15 Alpha and gcc-4.6 broke on this code
* diag/mbr: Remove unneeded dependency from MakefileGene Cumm2011-03-091-1/+1
|
* diag/mbr/handoff: Make filename in comment consistentGene Cumm2011-03-091-2/+2
|
* diag/mbr/README: consistent docsGene Cumm2011-03-091-1/+1
|
* diag/: Add Makefile,README here and mbr/Gene Cumm2011-03-094-0/+68
|
* Handoff *BR: Move to diagGene Cumm2011-03-091-0/+345