aboutsummaryrefslogtreecommitdiffstats
path: root/sample
AgeCommit message (Collapse)AuthorFilesLines
2012-10-16Add per-firmware object directory supportMatt Fleming1-2/+1
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>
2011-04-07Makefile: Move Makefile fragments into mk/Matt Fleming1-1/+2
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>
2010-10-25sample/Makefile: re-add the includeGene Cumm1-0/+1
Without the include, .ppm.gz to .lss messes up as $(GZIPPROG) is not expanded properly
2010-07-26sample: remove obsolete "raw" comboot/com32 samplesH. Peter Anvin14-851/+2
We really don't want people to write code without using the library, so just remove these obsolete and no longer functional samples. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2009-06-26Create a dosutil subdirectory and move mdiskchk thereH. Peter Anvin2-146/+0
DOS utilities aren't really "samples". Create a dedicated "dosutil" directory, and move mdiskchk there for now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/skipatou.cH. Peter Anvin1-7/+6
Automatically reformat sample/skipatou.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/printf.cH. Peter Anvin1-238/+248
Automatically reformat sample/printf.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/mdiskchk.cH. Peter Anvin1-102/+100
Automatically reformat sample/mdiskchk.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/hello2.cH. Peter Anvin1-17/+15
Automatically reformat sample/hello2.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/hello.cH. Peter Anvin1-12/+11
Automatically reformat sample/hello.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/filetest.cH. Peter Anvin1-65/+64
Automatically reformat sample/filetest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/fd.cH. Peter Anvin1-32/+32
Automatically reformat sample/fd.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/conio.cH. Peter Anvin1-19/+18
Automatically reformat sample/conio.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/c32echo.cH. Peter Anvin1-15/+14
Automatically reformat sample/c32echo.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-29Run Nindent on sample/atou.cH. Peter Anvin1-7/+6
Automatically reformat sample/atou.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-04-27Fix NASM dependency generationH. Peter Anvin1-1/+1
Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-04-27Unify dependency generation: MCONFIG.embeddedH. Peter Anvin1-7/+4
Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-03-12Merge branch 'hdt'H. Peter Anvin1-0/+5
2009-03-10mdiskchk: fix and update the boot loader name tableH. Peter Anvin1-2/+4
Fix and update the list of boot loaders in mdiskchk.
2009-02-25hdt: Moving hdt from sample to its own directoryErwan Velu2-1342/+1
2009-02-25hdt: Bump versionErwan Velu1-1/+1
2009-02-25hdt: Fixing error messageErwan Velu1-4/+8
2009-02-25hdt: Fixing typoErwan Velu1-1/+1
2009-02-25hdt: Removing static dmitable, it have to be in the s_dmi structure Making ↵Erwan Velu1-27/+41
dmi_iterate quieter Relocating hdt' submenus
2009-02-25hdt: Adding Syslinux & About menuErwan Velu1-5/+85
2009-02-25hdt: Adding more defined values for pci components Enabling mulitple kernel ↵Erwan Velu1-5/+37
modules per pci device Updating pcitest
2009-02-25hdt: Returning ENOPCIIDS and ENOMODULESPCIMAP when pci.ids and ↵Erwan Velu1-7/+21
modules.pcidmap files are missing
2009-02-25hdt: More snprintf Use statusbar to display contentErwan Velu1-127/+289
2009-02-25hdt: Fix typoErwan Velu1-4/+5
2009-02-25hdt: First code review by Sebastien GonzalveErwan Velu1-91/+90
2009-02-25hdt: More comments using #ifdef ATA for useless code until I found how to ↵Erwan Velu1-88/+142
manage ata
2009-02-25hdt: Using SUBMENULEN for realocated menusErwan Velu1-31/+31
2009-02-25hdt: Bump version 0.1.3 Improving menu's content (thx to antoine ginies) ↵Erwan Velu1-37/+77
Cleaning useless variables Adding more info during hdt startup We now count the number of menu & the number of pci devices Improving display by moving submenu
2009-02-25hdt: Improving PCI menu displayErwan Velu1-14/+43
2009-02-25hdt: Adding kernel menu Removing beep on timeout Adjusting infobar to ↵Erwan Velu1-6/+29
STATLEN Adding version display PCI scanning must be in the WITH_PCI ifdef
2009-02-25hdt: Removing useless stuff Adding bench on memoryErwan Velu1-3/+17
2009-02-25hdt: Improving disk detectionErwan Velu1-27/+78
2009-02-25hdt: Preliminary support for disksErwan Velu1-79/+216
2009-02-25hdt: Fixing device parameter structureErwan Velu1-6/+12
2009-02-25hdt: Initial harddrive detectionErwan Velu1-3/+205
2009-02-25hdt: Improving memory detection Adding battery detectionErwan Velu1-13/+135
2009-02-25hdt: Adding class nameErwan Velu1-4/+8
2009-02-25hdt: Adding PCI & DMI detection Main function must remain simpleErwan Velu2-56/+212
2009-02-25hdt: First releaseErwan Velu2-1/+203
2008-08-22Clean up embedded Makefile targets; fix build failureH. Peter Anvin1-7/+3
Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
2008-08-20Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin1-19/+6
Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
2008-05-29Move files out of root into core, dos, and utilsH. Peter Anvin1-2/+2
Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
2008-05-12Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur1-1/+2
-fstack-protector flag enabled by default.
2008-04-17syslinux 3.63: Rename $GZIP to $GZIPPROGMaciej W. Rozycki1-2/+2
If the variable GZIP exists in the environment, overriding it in the Makefile exports it into the environment, causing failures: gzip -cd syslogo.ppm.gz | \ ../ppmtolss16 \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \ > syslogo.lss gzip.gz: No such file or directory 204480 pixels, 25715 bytes, (74.85% compression) Use $GZIPPROG instead.
2008-03-05Use $(CC) in gcc_ok macro, not plain gccH. Peter Anvin1-1/+1
Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
2008-02-26Remove pngtopnm dependency from the samples/ directoryH. Peter Anvin3-3/+8
Ship syslogo.ppm.gz instead of syslogo.png, thereby eliminating a dependency on pngtopnm which apparently isn't installed by default on some distros.
2008-01-10Update copyright yearH. Peter Anvin8-8/+8
2007-10-10Makefiles: create NASMOPT variableH. Peter Anvin1-2/+3
Create NASMOPT variable, defaulting to -O9999. Mostly there to test beta versions of NASM.
2007-06-08Show list file addresses in absolutesyslinux-3.50H. Peter Anvin1-1/+1
Small Perl script to postprocess the listfile and show absolute addresses instead of section-relative. This only applies to the main address, not to addresses in bracketed fields.
2007-05-25Don't clobber /dev/null when compiling as rootLuciano Rocha1-2/+4
Compiling as root is highly discouraged, but some people do it anyway. gcc_ok, however, can clobber /dev/null due to "-o /dev/null"; this is bad. Instead, write a temporary file and delete it.
2007-03-14Restore intentional blank lines at the end of sample/sample.msgH. Peter Anvin1-0/+2
2007-03-14Stealth whitespace cleanup (automated)H. Peter Anvin2-3/+1
2007-03-14Add a register-setting shuffle and boot for real mode; clean up headers.syslinux-3.40-pre14H. Peter Anvin1-1/+1
- Add an API function to shuffle and boot which sets *all* RM registers; - Move those structures to <syslinux/bootpm.h> and <syslinux/bootrm.h>
2007-02-06Deal with various distributions breaking gcc in weird waysH. Peter Anvin1-1/+1
2007-01-28sample/Makefile: $(M32) is also needed in $(SFLAGS)H. Peter Anvin1-1/+1
2007-01-28Remove -m32 from the CC variable globally.H. Peter Anvin1-2/+2
2006-09-18Added a second sample background imageH. Peter Anvin1-0/+0
2006-09-14Add sample splash imageH. Peter Anvin1-0/+0
2006-08-17Remove more CVS-era $Id$ tags.H. Peter Anvin3-3/+1
2006-08-17Remove CVS-era $Id$ tags.H. Peter Anvin6-6/+0
2006-05-03Across-the-board stealth whitespace cleanupH. Peter Anvin13-53/+45
2005-01-03Clean up compile problems.hpa7-5/+14
2004-12-30Fix spelling of GrUBhpa2-1/+1
2004-12-29Be consistent in capitalizationsyslinux-3.00-pre9hpa2-1/+1
2004-12-29Correctly handle different values of the memdisk info structurehpa2-1/+11
2004-12-29Add code to detect the boot loader to mdiskchkhpa2-3/+35
2004-12-14Update copyright headers.hpa1-3/+3
2004-12-14Fix the spelling of "Boston"hpa6-6/+6
2004-12-03This is sample code.hpa1-0/+6
2004-12-03The chain loader has been moved to the main com32 directory.hpa2-370/+2
2004-08-16Fix "make tidy"hpa1-2/+2
2004-05-29Clear some gcc warningssyslinux-2.10-pre5hpa1-2/+4
2004-01-24Adjust options to work on 64-bit machines, and clean up nuisance warningshpa1-5/+9
2004-01-24Conditionally add -m32 to be able to compile in a 64-bit environmenthpa1-1/+2
2003-12-13Minor com32 wrapper code cleanuphpa3-4/+21
2003-12-11Add logical partition support for chainsyslinux-2.08hpa1-9/+106
2003-12-10Split atou() and skip_atou() into separate moduleshpa3-10/+15
2003-12-10Redistribute the library code; initial work on generic chainloaderhpa5-320/+600
2003-12-05Fix spacinghpa1-2/+2
2003-11-26Add a bootstrap chainloading API, and include a sample program for it.syslinux-2.08-pre5hpa2-1/+64
2003-11-26Add a "make tidy" target for the sample directoryhpa1-2/+6
2003-11-26Add API to query for the existence of MEMDISK.hpa2-0/+105
2003-11-24Fix COMBOOT/COM32 command-line generation.syslinux-2.08-pre1hpa3-1/+89
Add test programs.
2003-11-23Fix the file read API for COMBOOT/COM32syslinux-2.07hpa3-19/+438
2003-11-13opentest.c -> filetest.chpa3-121/+61
2003-11-10Test for the OPEN API commandhpa2-1/+121
2003-07-01COM32: Try to support both farcall and intcallhpa3-6/+55
2003-05-20Clean up a bit.hpa1-9/+15
2003-04-21Explain why we're doing this insane movl ...,%eaxhpa1-0/+1
2002-11-19Add second hello world samplehpa2-1/+56
2002-11-18Fix the COM32 sample programsyslinux-2.01-pre2hpa3-9/+25
2002-06-12Use the new <com32.h> definitionshpa1-2/+2
2002-06-12Correct the CFLAGS for building com32 fileshpa1-1/+1
2002-06-11Make sure "make clean" does the right thing.hpa1-1/+1
2002-06-11Add an API for COMBOOT images, and add support for "COM32" -- 32-bithpa2-1/+64
linear .com files.
2002-04-17Make the various clean conventions really match...syslinux-1.70hpa1-0/+2
2001-12-11Some makefile changes to account for memdiskhpa1-1/+0
2001-04-10Check in example of using <Ctrl-P> for comments, and make a note abouthpa1-2/+7
colours in graphics mode.
2001-04-05The great graphics merge! We're now officially working on version 1.60.hpa3-0/+37