debuggers.hg

annotate stubdom/Makefile @ 18282:4ce366cde89c

install more documentation to /usr/share/doc/xen and /etc/xen
Also resync xmexample3 with xmexample1 and 2.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 06 09:34:55 2008 +0100 (2008-08-06)
parents 5a89f4f1ece1
children d3947223dfae
rev   line source
keir@17066 1 XEN_ROOT = ..
keir@17905 2 MINI_OS = $(XEN_ROOT)/extras/mini-os
keir@17066 3
keir@17070 4 export XEN_OS=MiniOS
keir@17070 5
keir@17066 6 export stubdom=y
keir@17066 7 export debug=y
keir@18007 8 include $(XEN_ROOT)/Config.mk
keir@17066 9
keir@18170 10 override CONFIG_QEMU=ioemu
keir@18170 11
keir@18055 12 IOEMU_OPTIONS=--disable-sdl --disable-opengl --disable-gfx-check --disable-vnc-tls --disable-brlapi --disable-kqemu
keir@18281 13 ZLIB_URL?=http://www.zlib.net
keir@17066 14 ZLIB_VERSION=1.2.3
keir@18281 15 LIBPCI_URL?=http://www.kernel.org/pub/software/utils/pciutils
keir@17066 16 LIBPCI_VERSION=2.2.9
keir@18281 17 NEWLIB_URL?=ftp://sources.redhat.com/pub/newlib
keir@18034 18 NEWLIB_VERSION=1.16.0
keir@18281 19 LWIP_URL?=http://download.savannah.gnu.org/releases/lwip
keir@18114 20 LWIP_VERSION=1.3.0
keir@18281 21 GRUB_URL?=http://alpha.gnu.org/gnu/grub
keir@18113 22 GRUB_VERSION=0.97
keir@17066 23
keir@17066 24 WGET=wget -c
keir@17066 25
keir@17066 26 GNU_TARGET_ARCH:=$(XEN_TARGET_ARCH)
keir@17066 27 ifeq ($(XEN_TARGET_ARCH),x86_32)
keir@17066 28 GNU_TARGET_ARCH:=i686
keir@17066 29 endif
keir@17066 30
keir@17066 31 ifeq ($(GNU_TARGET_ARCH), i686)
keir@17066 32 TARGET_CFLAGS=
keir@17830 33 NEWLIB_CFLAGS+=-D_I386MACH_ALLOW_HW_INTERRUPTS
keir@18034 34 STUBDOM_SUPPORTED=1
keir@17066 35 endif
keir@17066 36 ifeq ($(GNU_TARGET_ARCH), x86_64)
keir@17066 37 TARGET_CFLAGS=-mno-red-zone
keir@17830 38 NEWLIB_CFLAGS+=-D_I386MACH_ALLOW_HW_INTERRUPTS
keir@18034 39 STUBDOM_SUPPORTED=1
keir@17066 40 endif
keir@17066 41 ifeq ($(GNU_TARGET_ARCH), ia64)
keir@17066 42 TARGET_CFLAGS=-mconstant-gp
keir@17066 43 endif
keir@17066 44
keir@17066 45 CROSS_ROOT=cross-root-$(GNU_TARGET_ARCH)
keir@17066 46 CROSS_PREFIX=$(CURDIR)/$(CROSS_ROOT)
keir@18007 47
keir@18007 48 # Disable PIE/SSP if GCC supports them. They can break us.
keir@18007 49 TARGET_CFLAGS += $(CFLAGS)
keir@18007 50 TARGET_CPPFLAGS += $(CPPFLAGS)
keir@18007 51 TARGET_CFLAGS += $(call cc-option,$(CC),-nopie,)
keir@18007 52 TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
keir@18007 53 TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
keir@18007 54
keir@18007 55 # Do not use host headers and libs
keir@18007 56 GCC_INSTALL = $(shell gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')
keir@18007 57 TARGET_CPPFLAGS += -U __linux__ -U __FreeBSD__ -U __sun__
keir@18055 58 TARGET_CPPFLAGS += -nostdinc
keir@18069 59 TARGET_CPPFLAGS += -isystem $(CURDIR)/$(MINI_OS)/include/posix
keir@18007 60 TARGET_CPPFLAGS += -isystem $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include
keir@18007 61 TARGET_CPPFLAGS += -isystem $(GCC_INSTALL)include
keir@18114 62 TARGET_CPPFLAGS += -isystem $(CURDIR)/lwip/src/include
keir@18114 63 TARGET_CPPFLAGS += -isystem $(CURDIR)/lwip/src/include/ipv4
keir@18044 64 TARGET_CPPFLAGS += -I$(CURDIR)/include
keir@18007 65
keir@18007 66 TARGET_LDFLAGS += -nostdlib -L$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib
keir@17066 67
keir@17909 68 TARGETS=ioemu c caml grub
keir@17905 69
keir@17066 70 .PHONY: all
keir@18034 71 all: build
keir@18034 72 ifeq ($(STUBDOM_SUPPORTED),1)
keir@18034 73 build: ioemu-stubdom c-stubdom pv-grub
keir@18034 74 else
keir@18034 75 build:
keir@18034 76 endif
keir@17066 77
keir@17066 78 ##############
keir@17066 79 # Cross-newlib
keir@17066 80 ##############
keir@17066 81
keir@18034 82 newlib-$(NEWLIB_VERSION).tar.gz:
keir@18281 83 $(WGET) $(NEWLIB_URL)/$@
keir@18034 84
keir@18034 85 newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz
keir@18034 86 tar xzf $<
keir@17905 87 patch -d $@ -p0 < newlib.patch
keir@18034 88 touch $@
keir@17066 89
keir@17066 90 NEWLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libc.a
keir@17066 91 .PHONY: cross-newlib
keir@17066 92 cross-newlib: $(NEWLIB_STAMPFILE)
keir@18126 93 $(NEWLIB_STAMPFILE): mk-headers newlib-$(NEWLIB_VERSION)
keir@17071 94 mkdir -p newlib-build
keir@17071 95 ( cd newlib-build && \
keir@18034 96 CC_FOR_TARGET="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS)" AR_FOR_TARGET=$(AR) LD_FOR_TARGET=$(LD) RANLIB_FOR_TARGET=$(RANLIB) ../newlib-$(NEWLIB_VERSION)/configure --prefix=$(CROSS_PREFIX) --verbose --target=$(GNU_TARGET_ARCH)-xen-elf --enable-newlib-io-long-long --disable-multilib && \
keir@17066 97 $(MAKE) && \
keir@18034 98 DESTDIR= $(MAKE) install )
keir@17066 99
keir@17066 100 ############
keir@17066 101 # Cross-zlib
keir@17066 102 ############
keir@17066 103
keir@17066 104 zlib-$(ZLIB_VERSION).tar.gz:
keir@18281 105 $(WGET) $(ZLIB_URL)/$@
keir@17066 106
keir@17066 107 ZLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libz.a
keir@17066 108 .PHONY: cross-zlib
keir@17066 109 cross-zlib: $(ZLIB_STAMPFILE)
keir@17066 110 $(ZLIB_STAMPFILE): zlib-$(ZLIB_VERSION).tar.gz $(NEWLIB_STAMPFILE)
keir@17066 111 tar xzf $<
keir@17066 112 ( cd zlib-$(ZLIB_VERSION) && \
keir@18007 113 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC=$(CC) ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \
keir@17066 114 $(MAKE) libz.a && \
keir@17066 115 $(MAKE) install )
keir@17066 116
keir@17066 117 ##############
keir@17066 118 # Cross-libpci
keir@17066 119 ##############
keir@17066 120
keir@17066 121 pciutils-$(LIBPCI_VERSION).tar.bz2:
keir@18281 122 $(WGET) $(LIBPCI_URL)/$@
keir@17066 123
keir@17984 124 pciutils-$(LIBPCI_VERSION): pciutils-$(LIBPCI_VERSION).tar.bz2
keir@17984 125 tar xjf $<
keir@17984 126 patch -d $@ -p1 < pciutils.patch
keir@17984 127 touch $@
keir@17984 128
keir@17066 129 LIBPCI_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libpci.a
keir@17066 130 .PHONY: cross-libpci
keir@17066 131 cross-libpci: $(LIBPCI_STAMPFILE)
keir@17984 132 $(LIBPCI_STAMPFILE): pciutils-$(LIBPCI_VERSION) $(NEWLIB_STAMPFILE) $(ZLIB_STAMPFILE)
keir@17066 133 ( cd pciutils-$(LIBPCI_VERSION) && \
keir@17066 134 cp ../libpci.config.h lib/config.h && \
keir@17066 135 echo '#define PCILIB_VERSION "$(LIBPCI_VERSION)"' >> lib/config.h && \
keir@17066 136 cp ../libpci.config.mak lib/config.mk && \
keir@18007 137 $(MAKE) CC="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(realpath $(MINI_OS)/include)" lib/libpci.a && \
keir@17066 138 $(INSTALL_DATA) lib/libpci.a $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib/ && \
keir@17066 139 $(INSTALL_DIR) $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pci && \
keir@18259 140 $(INSTALL_DATA) lib/config.h lib/header.h lib/pci.h lib/types.h $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pci/ \
keir@17066 141 )
keir@17066 142
keir@17066 143 ######
keir@17066 144 # lwIP
keir@17066 145 ######
keir@17066 146
keir@18114 147 lwip-$(LWIP_VERSION).tar.gz:
keir@18281 148 $(WGET) $(LWIP_URL)/$@
keir@18114 149
keir@18114 150 lwip: lwip-$(LWIP_VERSION).tar.gz
keir@18114 151 tar xzf $<
keir@18114 152 patch -d $@ -p0 < lwip.patch-cvs
keir@18114 153 touch $@
keir@17066 154
keir@17066 155 #######
keir@17066 156 # Links
keir@17066 157 #######
keir@17066 158
keir@17066 159 .PHONY: $(CROSS_ROOT)
keir@17066 160 $(CROSS_ROOT): cross-newlib cross-zlib cross-libpci
keir@17066 161
keir@18044 162 mk-headers:
keir@18044 163 mkdir -p include/xen && \
keir@18044 164 ln -sf $(addprefix ../../,$(wildcard $(XEN_ROOT)/xen/include/public/*.h)) include/xen && \
keir@18055 165 ln -sf $(addprefix ../../$(XEN_ROOT)/xen/include/public/,arch-ia64 arch-x86 hvm io xsm) include/xen && \
keir@18044 166 ( [ -h include/xen/sys ] || ln -sf ../../$(XEN_ROOT)/tools/include/xen-sys/MiniOS include/xen/sys ) && \
keir@18044 167 mkdir -p include/xen-foreign && \
keir@18044 168 ln -sf $(addprefix ../../,$(wildcard $(XEN_ROOT)/tools/include/xen-foreign/*)) include/xen-foreign/ && \
keir@18044 169 $(MAKE) -C include/xen-foreign/ && \
keir@18044 170 ( [ -h include/xen/foreign ] || ln -sf ../xen-foreign include/xen/foreign )
keir@17066 171 mkdir -p libxc
keir@17066 172 [ -h libxc/Makefile ] || ( cd libxc && \
keir@17905 173 ln -sf ../$(XEN_ROOT)/tools/libxc/*.h . && \
keir@17905 174 ln -sf ../$(XEN_ROOT)/tools/libxc/*.c . && \
keir@17905 175 ln -sf ../$(XEN_ROOT)/tools/libxc/Makefile . )
keir@17066 176 mkdir -p libxc/$(XEN_TARGET_ARCH)
keir@17066 177 [ -h libxc/$(XEN_TARGET_ARCH) ] || ( cd libxc/$(XEN_TARGET_ARCH) && \
keir@17905 178 ln -sf ../$(XEN_ROOT)/tools/libxc/$(XEN_TARGET_ARCH)/*.c . && \
keir@17905 179 ln -sf ../$(XEN_ROOT)/tools/libxc/$(XEN_TARGET_ARCH)/*.h . && \
keir@17905 180 ln -sf ../$(XEN_ROOT)/tools/libxc/$(XEN_TARGET_ARCH)/Makefile . )
keir@17066 181 mkdir -p ioemu
keir@18055 182 ifeq ($(CONFIG_QEMU),ioemu)
keir@17066 183 [ -h ioemu/Makefile ] || ( cd ioemu && \
keir@18055 184 ln -sf ../$(XEN_ROOT)/tools/ioemu/* .)
keir@18055 185 else
keir@18055 186 [ -h ioemu/Makefile ] || ( cd ioemu && \
keir@18055 187 ln -sf $(CONFIG_QEMU)/* . && \
keir@18055 188 rm -fr i386-dm && \
keir@18055 189 rm -fr i386-stubdom && \
keir@18055 190 mkdir i386-dm && \
keir@18055 191 mkdir i386-stubdom && \
keir@18055 192 ln -sf $(CONFIG_QEMU)/i386-dm/* i386-dm/ && \
keir@18055 193 ln -sf $(CONFIG_QEMU)/i386-stubdom/* i386-stubdom/ )
keir@18055 194 endif
keir@18055 195 [ ! -h ioemu/config-host.h ] || rm -f ioemu/config-host.h
keir@18055 196 [ ! -h ioemu/config-host.mak ] || rm -f ioemu/config-host.mak
keir@17905 197 $(MAKE) -C $(MINI_OS) links
keir@18177 198 touch mk-headers
keir@17905 199
keir@17905 200 TARGETS_MINIOS=$(addprefix mini-os-,$(TARGETS))
keir@17905 201 $(TARGETS_MINIOS): mini-os-%:
keir@17905 202 [ -d $@ ] || \
keir@17905 203 for i in $$(cd $(MINI_OS) ; find . -type d) ; do \
keir@17905 204 mkdir -p $@/$$i ; \
keir@17905 205 done
keir@17066 206
keir@17066 207 #######
keir@17066 208 # libxc
keir@17066 209 #######
keir@17066 210
keir@17066 211 .PHONY: libxc
keir@17905 212 libxc: libxc/libxenctrl.a libxc/libxenguest.a
keir@18126 213 libxc/libxenctrl.a libxc/libxenguest.a:: cross-zlib
keir@18007 214 CPPFLAGS="$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C libxc
keir@17066 215
keir@17066 216 #######
keir@17066 217 # ioemu
keir@17066 218 #######
keir@17066 219
keir@17066 220 .PHONY: ioemu
keir@18126 221 ioemu: cross-zlib cross-libpci libxc
keir@18055 222 ifeq ($(CONFIG_QEMU),ioemu)
keir@17066 223 [ -f ioemu/config-host.mak ] || \
keir@18007 224 ( cd ioemu ; \
keir@18007 225 XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) CFLAGS="$(TARGET_CFLAGS)" sh configure --prefix=/usr --enable-stubdom $(IOEMU_OPTIONS))
keir@18114 226 CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C ioemu LWIPDIR=$(CURDIR)/lwip TOOLS=
keir@18055 227 else
keir@18055 228 [ -f ioemu/config-host.mak ] || \
keir@18055 229 ( cd ioemu ; \
keir@18055 230 CONFIG_STUBDOM=yes XEN_ROOT=$(abspath $(XEN_ROOT)) XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) CFLAGS="$(TARGET_CFLAGS)" sh ./xen-setup --cc=$(CC) --disable-gcc-check $(IOEMU_OPTIONS))
keir@18114 231 CPPFLAGS= TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C ioemu LWIPDIR=$(CURDIR)/lwip TOOLS= CONFIG_STUBDOM=yes
keir@18055 232 endif
keir@17066 233
keir@17066 234 ######
keir@17066 235 # caml
keir@17066 236 ######
keir@17066 237
keir@17066 238 .PHONY: caml
keir@18127 239 caml: $(CROSS_ROOT)
keir@18114 240 CPPFLAGS="$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C $@ LWIPDIR=$(CURDIR)/lwip
keir@17066 241
keir@17299 242 ###
keir@17299 243 # C
keir@17299 244 ###
keir@17299 245
keir@17299 246 .PHONY: c
keir@18127 247 c: $(CROSS_ROOT)
keir@18114 248 CPPFLAGS="$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C $@ LWIPDIR=$(CURDIR)/lwip
keir@17299 249
keir@17909 250 ######
keir@17909 251 # Grub
keir@17909 252 ######
keir@17909 253
keir@18113 254 grub-$(GRUB_VERSION).tar.gz:
keir@18281 255 $(WGET) $(GRUB_URL)/$@
keir@18113 256
keir@18113 257 grub-upstream: grub-$(GRUB_VERSION).tar.gz
keir@18113 258 tar xzf $<
keir@18113 259 mv grub-$(GRUB_VERSION) $@
keir@17909 260 for i in grub.patches/* ; do \
keir@17909 261 patch -d $@ -p1 < $$i ; \
keir@17909 262 done
keir@17909 263
keir@17909 264 .PHONY: grub
keir@18127 265 grub: grub-upstream $(CROSS_ROOT)
keir@18007 266 CPPFLAGS="$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C $@
keir@17909 267
keir@17066 268 ########
keir@17066 269 # minios
keir@17066 270 ########
keir@17066 271
keir@17778 272 .PHONY: ioemu-stubdom
keir@18055 273 ifeq ($(CONFIG_QEMU),ioemu)
keir@18055 274 ioemu-stubdom: APP_OBJS=$(CURDIR)/ioemu/i386-dm-stubdom/qemu.a $(CURDIR)/ioemu/i386-dm-stubdom/libqemu.a
keir@18055 275 else
keir@18055 276 ioemu-stubdom: APP_OBJS=$(CURDIR)/ioemu/i386-stubdom/qemu.a $(CURDIR)/ioemu/i386-stubdom/libqemu.a $(CURDIR)/ioemu/libqemu_common.a
keir@18055 277 endif
keir@18114 278 ioemu-stubdom: mini-os-ioemu lwip libxc ioemu
keir@18114 279 DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="-DCONFIG_QEMU $(TARGET_CFLAGS)" DEF_LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) -C $(MINI_OS) OBJ_DIR=$(CURDIR)/$< LWIPDIR=$(CURDIR)/lwip APP_OBJS="$(APP_OBJS)"
keir@17066 280
keir@17778 281 CAMLLIB = $(shell ocamlc -where)
keir@17066 282 .PHONY: caml-stubdom
keir@18114 283 caml-stubdom: mini-os-caml lwip libxc caml
keir@18114 284 DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="-DCONFIG_CAML $(TARGET_CFLAGS)" DEF_LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) -C $(MINI_OS) OBJ_DIR=$(CURDIR)/$< LWIPDIR=$(CURDIR)/lwip APP_OBJS="$(CURDIR)/caml/main-caml.o $(CURDIR)/caml/caml.o $(CAMLLIB)/libasmrun.a"
keir@17299 285
keir@17299 286 .PHONY: c-stubdom
keir@18114 287 c-stubdom: mini-os-c lwip libxc c
keir@18114 288 DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="-DCONFIG_C $(TARGET_CFLAGS)" DEF_LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) -C $(MINI_OS) OBJ_DIR=$(CURDIR)/$< LWIPDIR=$(CURDIR)/lwip APP_OBJS=$(CURDIR)/c/main.a
keir@17909 289
keir@17909 290 .PHONY: pv-grub
keir@17909 291 pv-grub: mini-os-grub libxc grub
keir@18007 292 DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="-DCONFIG_GRUB $(TARGET_CFLAGS)" DEF_LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) -C $(MINI_OS) OBJ_DIR=$(CURDIR)/$< APP_OBJS=$(CURDIR)/grub/main.a
keir@17066 293
keir@17066 294 #########
keir@17066 295 # install
keir@17066 296 #########
keir@17066 297
keir@18034 298 ifeq ($(STUBDOM_SUPPORTED),1)
keir@18282 299 install: install-readme install-ioemu install-grub
keir@18034 300 else
keir@18034 301 install:
keir@18034 302 endif
keir@17909 303
keir@18282 304 install-readme:
keir@18282 305 $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)
keir@18282 306 $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.stubdom
keir@18282 307
keir@18034 308 install-ioemu: ioemu-stubdom
keir@18034 309 $(INSTALL_DIR) "$(DESTDIR)/usr/lib/xen/bin"
keir@17066 310 $(INSTALL_PROG) stubdom-dm "$(DESTDIR)/usr/lib/xen/bin"
keir@18034 311 $(INSTALL_DIR) "$(DESTDIR)/usr/lib/xen/boot"
keir@18269 312 $(INSTALL_DATA) mini-os-ioemu/mini-os.gz "$(DESTDIR)/usr/lib/xen/boot/ioemu-stubdom.gz"
keir@17909 313
keir@18034 314 install-grub: pv-grub
keir@18034 315 $(INSTALL_DIR) "$(DESTDIR)/usr/lib/xen/boot"
keir@18269 316 $(INSTALL_DATA) mini-os-grub/mini-os.gz "$(DESTDIR)/usr/lib/xen/boot/pv-grub.gz"
keir@17066 317
keir@17066 318 #######
keir@17066 319 # clean
keir@17066 320 #######
keir@17066 321
keir@17066 322 # Only clean the libxc/ioemu/mini-os part
keir@17066 323 .PHONY: clean
keir@17066 324 clean:
keir@17905 325 rm -fr mini-os-ioemu
keir@17905 326 rm -fr mini-os-c
keir@17905 327 rm -fr mini-os-caml
keir@17909 328 rm -fr mini-os-grub
keir@17066 329 $(MAKE) -C caml clean
keir@17778 330 $(MAKE) -C c clean
keir@17909 331 $(MAKE) -C grub clean
keir@18250 332 [ ! -d libxc ] || $(MAKE) -C libxc clean
keir@18250 333 [ ! -d ioemu ] || $(MAKE) -C ioemu clean
keir@17066 334
keir@17066 335 # clean the cross-compilation result
keir@17066 336 .PHONY: crossclean
keir@17066 337 crossclean: clean
keir@17066 338 rm -fr $(CROSS_ROOT)
keir@18007 339 rm -fr newlib-build
keir@17066 340 rm -fr zlib-$(ZLIB_VERSION) pciutils-$(LIBPCI_VERSION)
keir@18218 341 rm -fr libxc ioemu
keir@18177 342 rm -f mk-headers
keir@17066 343
keir@17066 344 # clean patched sources
keir@17066 345 .PHONY: patchclean
keir@17066 346 patchclean: crossclean
keir@18034 347 rm -fr newlib-$(NEWLIB_VERSION)
keir@18114 348 rm -fr lwip
keir@18113 349 rm -fr grub-upstream
keir@17066 350
keir@17066 351 # clean downloads
keir@17066 352 .PHONY: downloadclean
keir@17066 353 downloadclean: patchclean
keir@18055 354 rm -f newlib-$(NEWLIB_VERSION).tar.gz
keir@17066 355 rm -f zlib-$(ZLIB_VERSION).tar.gz
keir@17066 356 rm -f pciutils-$(LIBPCI_VERSION).tar.bz2
keir@18114 357 rm -f grub-$(GRUB_VERSION).tar.gz
keir@18114 358 rm -f lwip-$(LWIP_VERSION).tar.gz
keir@17066 359
keir@17066 360 .PHONY: distclean
keir@17066 361 distclean: downloadclean