|
Revision 3333, 0.8 kB
(checked in by tg, 5 years ago)
|
contrary to the specs, an initramfs image must be sv4cpio instead
of sv4crc, but I finally managed to coerce it into booting finely
(on rb-2.6, as usual)
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
INITRAMFS= ${FWRT_PREFIX}-${DEVICE}-${BOARD}-${KERNEL}-${FS}.cpio.gz |
|---|
| 8 |
ROOTFSTARBALL= ${FWRT_PREFIX}-${DEVICE}-${BOARD}-${KERNEL}-${FS}.tar.gz |
|---|
| 9 |
|
|---|
| 10 |
ifeq (${FS},initramfs) |
|---|
| 11 |
install: ${BIN_DIR}/${INITRAMFS} |
|---|
| 12 |
@echo |
|---|
| 13 |
@echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}' |
|---|
| 14 |
endif |
|---|
| 15 |
|
|---|
| 16 |
${BIN_DIR}/${INITRAMFS}: ${KDIR}/root |
|---|
| 17 |
cd ${KDIR}/root; find . | sed -n '/^\.\//s///p' | sort | \ |
|---|
| 18 |
${LBIN_DIR}/cpio -oC512 -Mdist -Hsv4cpio | gzip -n9 >$@ |
|---|
| 19 |
|
|---|
| 20 |
${BIN_DIR}/${ROOTFSTARBALL}: ${KDIR}/root |
|---|
| 21 |
cd ${KDIR}/root; find . | sed -n '/^\.\//s///p' | sort | \ |
|---|
| 22 |
${LBIN_DIR}/cpio -oC512 -Mdist -Hustar | gzip -n9 >$@ |
|---|