ia64/xen-unstable

view tools/xm-test/ramdisk/Makefile.am @ 8186:28bd01c9b596

Merge
author djm@kirby.fc.hp.com
date Fri Dec 02 12:52:25 2005 -0600 (2005-12-02)
parents ab845d97de72
children 436c3b6d09a6
line source
2 EXTRA_DIST = skel configs patches
4 BR_TAR = buildroot-20050823.tar.bz2
5 BR_URL = http://buildroot.uclibc.org/downloads/snapshots/$(BR_TAR)
6 #BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2
7 BR_SRC = buildroot
8 BR_IMG = $(BR_SRC)/rootfs.i386.ext2
10 BR_ROOT = build_i386/root
12 XMTEST_MAJ_VER = $(shell echo @PACKAGE_VERSION@ | perl -pe 's/(\d+)\.(\d+)\.\d+/\1.\2/')
13 XMTEST_VER_IMG = initrd-$(XMTEST_MAJ_VER).img
15 all: initrd.img
17 $(BR_TAR):
18 wget $(BR_URL)
20 $(BR_SRC): $(BR_TAR)
21 tar xjf $(BR_TAR)
23 $(BR_IMG): $(BR_SRC)
24 cp configs/buildroot $(BR_SRC)/.config
25 cp configs/busybox $(BR_SRC)/package/busybox/busybox.config
26 cp configs/uClibc $(BR_SRC)/toolchain/uClibc/uClibc.config
27 (for i in patches/buildroot/*.patch; do \
28 cd $(BR_SRC) && patch -p1 <../$$i; done )
29 cd $(BR_SRC) && make oldconfig && make
31 $(XMTEST_VER_IMG): $(BR_IMG)
32 (cd skel; tar cf - .) | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
33 cd $(BR_SRC) && make
34 cp $(BR_IMG) initrd-$(XMTEST_MAJ_VER).img
36 initrd.img: $(XMTEST_VER_IMG)
37 ln -sf $(XMTEST_VER_IMG) initrd.img
39 existing:
40 @[ -f $(XMTEST_VER_IMG) ] && ln -sf $(XMTEST_VER_IMG) initrd.img || \
41 echo Error, $(XMTEST_VER_IMG) not found
43 clean-local: am_config_clean-local
45 am_config_clean-local:
46 rm -Rf buildroot
47 rm -f *~
48 rm -f initrd.img
49 rm -f $(BR_TAR)
50 rm -Rf patches make.d